Hi, I completed a first simple working version of this applet in case
somebody would like to try it and provide feedback.
The name of the plugin is "Application Launch and Task Bar" and is a
Launchbar plugin + a Taskbar plugin with interaction between them.
What is the interaction:
1) when right clicking on a task button you can see the new menu item "New
Instance" if its desktop file is found in launcher or in the menu cache;
2) when right clicking on a task button you can see the new menu item"Add
to Launcher" if its desktop file is NOT found in launcher and is FOUND in
the menu cache;
3) when right clicking on a task button you can see the new menu
item"Remove from Launcher" if its desktop file is FOUND in launcher;
4) when right clicking on a task button you will see none of the above if
the funcion was not able to locate the desktop file at all.
The way that a desktop file is searched from a task button is simple and
not perfect, in some cases it may fail and there's a config key file to
handle these special cases.
a) The desktop files have an Exec section, the exec command is stripped
from any argument and the location of the binary (e.g. /usr/bin) is also
removed;
b) From the task buttons I retrieve the PID of the window and from the PID
I retrieve the command, this command is also stripped from arguments and
binary location;
c) the key file about special cases is created if not found in
~/.config/lxpanel/launchtaskbar.cfg and the content is at the moment:
[special_cases]
synaptic=synaptic-pkexec
soffice.bin=libreoffice
which means that for the task manager retrieved command in these 2 cases I
search instead for the associated value
I know that we're moving to Qt so it's not worth to spend too much time
again on new features for old lxpanel but since I already started this work
one year ago spending a lot of time on it, I wanted to complete it,
furthermore I have many PCs that will ship the good old lxde again for long
time.
The code is in branch named xkb in git repo and is in line with 0.6 code
except for languages updates.
Cheers,
Giuseppe.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list