! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Open launchers with arguments by middle click
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-panel

Comments

Description Mike Massonnet editbugs 2006-04-20 08:39:27 CEST
Hello,

I just get the next idea: be able to open a launcher with arguments by middle clicking it. It should read the clipboard for the arguments.

Simple example: I select somewhere a URL and middle click the launcher which is configured for a browser. It will directly show the page.

Hope you will enjoy the idea, not sure if it is good :)
mmassonnet
Comment 1 Jasper Huijsmans editbugs 2006-04-20 19:07:44 CEST
Sure. I think the relevant part of the code currently says something like this:

if (ev->button == 2)
{
    /* do something useful with middle click */
}

If someone want to give it a shot, please be my guest.
Comment 2 Mike Massonnet editbugs 2006-05-01 02:31:17 CEST
Created attachment 533 
middle click on icon button

This patch already works for me. Affected is only the icon button and not the items in the menu :/ I will try to head on them next.
Middle clicking (button 2) on a launcher opens the application + the primary clipboard as parameters.
Comment 3 Mike Massonnet editbugs 2006-05-23 23:17:18 CEST
Created attachment 566 
middle click launcher and exec with clipboard as argument

OK, now I did it!  I can double-click text (URL, paths, search string or any good  argument for a command) and middle click on the button as in the menu.
It works perfect for me.  I hope you will accept my hack ^_^
Comment 4 Jasper Huijsmans editbugs 2006-05-28 15:08:01 CEST
Very nice! Thanks a lot. I committed something, based on your patches, in revision 21875. I made a few changes to make a bit better use of available functions and data, so I wouldn't need the 'use_clip' flag.

Bug #1694

Reported by:
Mike Massonnet
Reported on: 2006-04-20
Last modified on: 2010-11-20

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
Unspecified

Attachments

Additional information