
lxpanel 0.6 + integrated launch and task
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
The Name of this new plugin is Application Launch and Task Bar.
Here’s the interaction that I added (visible in the screenshots below):
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
x-terminal-emulator=lxterminal
which means that for the task manager retrieved command in these 3 cases I search instead for the associated value
7 years ago
first public release
7 years ago
first public release
cwickert
8 years ago
Report
giuspen
8 years ago
Report