Results 1 to 4 of 4

Thread: Refresh panel applet

  1. #1
    Join Date
    Feb 2007
    Location
    London, UK
    Beans
    2
    Distro
    The Feisty Fawn Testing

    Refresh panel applet

    Is there any nicer way for my Perl program to refresh a panel applet's properties than doing "killall gnome-panel"?

    I can write new contents to, e.g.
    ~/.gnome2/panel2.d/default/launchers/wallpaper.pl-1.desktop
    but how can I get the applet to refresh itself from the file?

    Killing the whole panel is slow, obtrusive and causes pidgin to unminimise.

  2. #2
    Join Date
    Sep 2009
    Beans
    84
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Refresh panel applet

    Good luck with that one I just recently did a similar post, though mine was to refresh a custom application launcher icon. Maybe there is a way to do it with perl but apparently no one knew of a way to do with bash. What are you trying to do with it? My post was http://ubuntuforums.org/showthread.php?t=1280000 .

    I ended up having to use zenity notification, but it does the job. Take a look and let me know if it helps. Hopefully your more successful than I was. (The final script is at the bottom of the thread but you can see with how many times I bumped it how no one had that answer. If it wasn't for zhocchao I'd still be jacking around with it, or using killall).
    Last edited by onyxwolf; October 16th, 2009 at 03:43 PM. Reason: Added last comment
    Our greatest glory is not in never falling, but in getting up every time we do.Confucius
    Chinese philosopher & reformer (551 BC - 479 BC)

  3. #3
    Join Date
    Feb 2007
    Location
    London, UK
    Beans
    2
    Distro
    The Feisty Fawn Testing

    Re: Refresh panel applet

    Out of desparation I tried sending every signal in the book to the gnome-panel process (kill -HUP is a fairly common conventional way to ask a process to reload its config) but none of them worked. They either just terminated the process or were ignored. Maybe I should UTSL.

  4. #4
    Join Date
    Jan 2006
    Location
    Waterloo, ON, Canada
    Beans
    214
    Distro
    Ubuntu 12.04 Precise Pangolin

    Cool Re: Refresh panel applet

    -- annoying --

    When a user adds a launcher manually into ~/.gnome2/panel2.d/default/launchers, the panel should automatically notice this and add the launcher...
    ~Fermmy

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •