You are not logged in.
Hi all,
there are some similar problems how to modify panel in this forum, but i didn't found a solution for this special prob.
I wrote a bash script and created a multiple choice starter on the panel:
This both starters call this script with different options. Additional i selected the option "show last used element in panel":
That works fine. The question now is:
I am looking for the solution to sync the panel icons when the script is called from command line and not by
clicking on the menu icons. This means the last called script should display the corresponding icon in the panel when called
from command line.
I experimented with some calls of
exo-open
gtk-launch
exo-desktop-item-edit
xfconf-query
but didn't found an command or option in the docs to solve this.
Any ideas?
Last edited by HerrHolle (2024-06-01 18:45:25)
Offline
Hello and welcome.
This setting/functionality does not seem to be accessible outside of the code/memory of the running app. (https://gitlab.xfce.org/xfce/xfce4-pane … eads#L1508). There is no way to currently access this that I can see. You could create an enhancement request to see if the developer will consider adding functionality to allow someone to manually manipulate this order.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks for the link to the corresponding code snippet! Let's see if i can write a little hack around. But first reading and understanding the code. I am more fimilar with qt than gtk.
Offline
found a solution using the xfce4-genmon-plugin. I will report on this in detail later.
Offline
a good solution is to use buildt-in functions from xfce4.
I discovered the xfce4-genmon-plugin that i didn't know yet.
The combination of a multiple starter plugin with the genmon-plugin
met my requirements in terms of appearance and function.
each icon starts a different config script. Another helper script
reads the current configuration and returns an string with
xml code that points to the icon. This string is parsed by the
xfce4-genmon-plugin and force the plugin to display a icon of
my choice:
Offline
a good solution is to use buildt-in functions from xfce4.
I discovered the xfce4-genmon-plugin that i didn't know yet.
The combination of a multiple starter plugin with the genmon-plugin
met my requirements in terms of appearance and function.
each icon starts a different config script. Another helper script
reads the current configuration and returns an string with
xml code that points to the icon. This string is parsed by the
xfce4-genmon-plugin and force the plugin to display a icon of
my choice:
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 535.78 KiB (Peak: 536.63 KiB) ]