include /usr/bin link, desktop file, and system menu entry

Bug #615301 reported by Ian
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdm-guest-session (Ubuntu)
Fix Released
Undecided
Gunnar Hjalmarsson

Bug Description

Binary package hint: gdm-guest-session

Currently the only way to start a guest session is if on has the User Switcher applet on his gnome-panel (and maybe there's an equiv for KDE, but not other window managers I bet) or to execute a binary that's not in the default path. I suggest putting a link to the binary in /usr/bin so one need not remember where it is. Also, a desktop file in /usr/share/applications would make it easy to call from deskbar or similar launchers. Also, it seems an entry for it should exist in the system menu, that disappears from it when the User Switcher applet is active, like other login/shutdown items in that menu.

Tags: patch
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

The linked branch and the patch includes a symlink and a desktop file as suggested.

As regards the comparison with logout, shutdown etc., I'm not convinced. Even if there are similarities from a technical point of view, from a user perspective I believe that the guest session feature is more like an application. The desktop file I added makes an item appear under Applications -> System Tools, which I think reflects the nature of gdm-guest-session fairly well.

Changed in gdm-guest-session (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
status: New → In Progress
tags: added: patch
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hide menu item within guest sessions

Revision history for this message
Martin Pitt (pitti) wrote :

The /usr/bin/ symlink is fine, but adding a desktop file with user visible strings is more work. It needs to be a .desktop.in file, and gdm-guest-session would need to grow an intltool setup, so that the desktop file can be translated properly.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Martin,
As regards translation, I took a short cut and simply pointed to the textdomain of indicator-session, which seems to work fine. Is it still a must to do it the hard way? ;-)

Revision history for this message
Martin Pitt (pitti) wrote :

Oh, indeed I missed that. I guess that's okay for an Ubuntu specific package like gdm-guest-session :)

Revision history for this message
Martin Pitt (pitti) wrote :

But shouldn't we hide the menu entry by default? It's usually in the session indicator menu, and the system menu is already crowded enough; I wouldn't like to aggravate that by adding duplicate information.

We could hide it by default, and then people can unhide it with the menu editor. Does that sound acceptable for you?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdm-guest-session - 0.19

---------------
gdm-guest-session (0.19) natty; urgency=low

  * Do not launch if screenlocking fails (LP: #600559)
  * Provide /usr/bin/ symlink and (hidden by default) desktop file
    (LP: #615301)
 -- Gunnar Hjalmarsson <email address hidden> Thu, 11 Nov 2010 08:51:05 +0100

Changed in gdm-guest-session (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

While I do see the logic in not duplicating, it's not in the System menu it appears, it's in Applications -> System Tools (not very crowded). I think that the guest session feature is not obviously comparable with logout, restart etc., and that it would have deserved the improved visibility. But of course it's acceptable to me; after all it was you who wrote the thing.

I pull myself together for discussing ~/.profile on another topic. ;-) When are you ready for that?

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 615301] Re: include /usr/bin link, desktop file, and system menu entry

Gunnar Hjalmarsson [2010-11-11 10:37 -0000]:
> While I do see the logic in not duplicating, it's not in the System menu
> it appears, it's in Applications -> System Tools (not very crowded).

In fact it should be empty. We don't want this menu in a default
installation, stuff should go into the System menu instead.
Unfortunately there are still packages which use this menu.

> I pull myself together for discussing ~/.profile on another topic. ;-)
> When are you ready for that?

Need to find some time, but RSN, promised!

Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Just a detail. I believe it should be

NoDisplay=true

(lower-case 't') to safely prevent displaying.

Revision history for this message
Martin Pitt (pitti) wrote :

Gunnar,

right, I just uploaded version 20 to fix this. Thanks!

Martin

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.