quit applet: logout does not work on Hardy

Bug #568224 reported by Mark Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
Won't Fix
Low
onox

Bug Description

Computer Info:

Ubuntu Hardy 8.04.4 (GNOME 2.22)
Awn 0.4.1 bzr revision 690 + fix in Bug #565174
Awn Extras 0.4.1 bzr revision 1289 + fix in Bug #565792
Both installed from ppa:malept/experimental

Bug Info:

When I click on the "logout" icon, nothing happens. I expect that the session logout dialog is shown. I think that this bug is similar to bug #565792, in that the gnome-session in GNOME 2.22 does not provide a DBus interface as it does in later versions, so either detection or execution is failing.

The solution should probably be when the quit applet can't find a DBus interface, it should check for the existence of gnome-session-save (and possibly a GNOME environment variable, much like xdg-open), and if found, it should fall back to executing `gnome-session-save --kill --gui`.

Tags: applet quit
Revision history for this message
onox (onox) wrote :

The applet already checks whether it can find the DBus interfaces. Go to /apps/instances/awn-applet-quit/awn-applet-quit-UID/ where UID is a number (use use ps auxf or htop or whatever to find this) and then modify the value of log-out-command and lock-screen-command.

Changed in awn-extras:
status: New → Invalid
Revision history for this message
onox (onox) wrote :

This applies to gconf. For the keyfile backend look in the ini or whatever it uses.

Revision history for this message
onox (onox) wrote :

Argh.. it's you. Then I don't need to tell you how this works :p

Revision history for this message
Mark Lee (malept) wrote :

Well, I'd argue that it's a usability issue, as people expect these applets to "just work".

Revision history for this message
onox (onox) wrote :

Sorry but hardy is just too old for me. I once asked in #awn whether there were people who knew how to detect kde and xfce, but no one answered.

Patches are welcome.

Revision history for this message
Mark Lee (malept) wrote :

I can tell you exactly how to detect it, but I won't code it myself.

KDE:
See http://www.purinchu.net/wp/2009/06/12/oh-fun/ for the KDE session manager logout behavior.

Xfce:
cairo-menu has the DBus interface address for the Xfce session manager, in gnome-menu-builder.c.

GNOME:
If the DBus interface for GNOME's session manager isn't found, check for the environment variable GNOME_DESKTOP_SESSION_ID. If that's found and gnome-session-save exists in the PATH, use that.

Revision history for this message
onox (onox) wrote :

I'll take a look at it.

Changed in awn-extras:
importance: Medium → Low
status: Invalid → Confirmed
Revision history for this message
onox (onox) wrote :

I am closing this bug report because Hardy is not supported anymore. Gnome 2.22 is really too old and I am not able to test any code for XFCE and KDE.

Changed in awn-extras:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.