Page 1 of 1

Dynamic Change icon in the top panel

Posted: Sun Nov 02, 2014 9:11 am
by georgian
Hi

I created a desktop launcher (192.168.1.90.desktop)
I created a link to this launcher in /home/georgian/.local/share/applications. In this way I saw the link in the "System Tools" and I could add in Top Panel.
Everything is ok ... but :
Associated application launcher connects to a server via sshfs and when connection is established change icon in " connected "( on desktop and top panel).
Because changing the icon is not visible in Top Panel must execute every time lxpanelctl restart.
Same thing when it was down from the server...

My problem :
After 2-3 connections and disconnections all panels become invisible .

Can you help me ?
Thanks in advance

Re: Dynamic Change icon in the top panel

Posted: Sun Nov 02, 2014 7:35 pm
by drooly
tbh, i'm having difficulties understanding.

what distro are you using? one that uses 2 lxpanels?

i have no clue why your launcher doesn't work as expected. maybe you could rename it so it's only letters, not numbers. e.g. my-sshfs-connection.desktop.

also i'm pretty sure that lxpanels launchers don't dynamically change icons, in other words it won't change once you connected.