Here's a script that makes gnome-panel try twice to get loaded properly,
so it should avoid the need for a desktop launcher that kills the panel
for most of the cases; for the few that will remain, a logout/login
should suffice...

Greek teachers shouldn't apply it, it'll come as an update from our
ts.sch.gr PPA.

Create /opt/ltsp/i386/usr/local/bin/gnome-panel, with the following
contents:

#!/bin/sh

if [ "$LTSP_FATCLIENT" != "True" ]; then
    exec /usr/bin/gnome-panel "$@"
fi

/usr/bin/gnome-panel "$@" &
sleep 10
if ! pgrep -nx indicator-sound -U $USER >/dev/null 2>&1; then
    echo "$(date) - restarting gnome-panel" >> $HOME/.xsession-errors
    exec /usr/bin/gnome-panel --replace
fi


And just a bit more debugging info, in case anyone's interested:
* On a client that has the problem, the gnome-panel process is there, but all 
the applet processes (e.g. indicator-sound-service) aren't.

* The .xsession-errors of a client that doesn't have the problem, contains:
Initializing nautilus-gdu extension
** Message: applet now removed from the notification area
** Message: using fallback from indicator to GtkStatusIcon
** Message: moving back from GtkStatusIcon to indicator
...while on a client that does have the problem, the last line is missing (i.e. 
it hangs somewhere between outputing those 2 lines)

* I tried removing everything from /etc/xdg/autostart, except for gnome-
settings-daemon.desktop, and the problem did appear to become more rare,
but eventually it did happen again on 1 client after rebooting 10
clients 6 times (while usually it happens on 1 out of 10 clients, every
time).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-panel in Ubuntu.
https://bugs.launchpad.net/bugs/1078679

Title:
  Gnome fallback - intermittent menus on top panel

Status in “gnome-panel” package in Ubuntu:
  Confirmed

Bug description:
  Ubuntu 12.04.1, up-to-date.

  Using gnome fallback session on fat clients via ltsp, sometimes a user
  is presented with an empty top panel (no Applications menu, no Places
  menu, no indicators). The panel is there but no menus. This happens
  perhaps 1 in 20 logins and across various users and various machines.
  Workaround is a desktop launcher (named FixMyMenu) that the user can
  run that calls the following script:

  #!/bin/sh
  killall gnome-panel
  gnome-panel

  This works in the vast majority of cases, though occasionally needs to
  be run more than once before the menus appear on the panel.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/1078679/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to