Dynamic Change icon in the top panel

Please post all general support questions for LXDE here.
Locked
georgian
Posts: 1
Joined: Sun Nov 02, 2014 8:47 am

Dynamic Change icon in the top panel

Post 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
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: Dynamic Change icon in the top panel

Post 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.
Locked