Unity Dash can't understand "logout", "reboot", or "shutdown"

Bug #1403293 reported by Lonnie Lee Best
40
This bug affects 9 people
Affects Status Importance Assigned to Milestone
unity (Ubuntu)
Fix Released
Low
Unassigned
Xenial
Fix Released
Low
Unassigned

Bug Description

This bug proposes the additional surfacing of power-management and session actions directly within the Dash:

  - Reboot ("restart" is another good alias for this)
  - Shutdown (other intuitive aliases: "shut down", "turn off")
  - logout (aliases: "log out", "log off" and "logoff")
  - Suspend/hibernate
  - Lock
  - Switch User

Currently these user-initiated actions are presented via the Devices (cog/gear-icon-menu), and can be accessed via the keyboard using either:

  1. [Alt]+[F10] [Left] [Up/Down] [Enter]
  2. [Alt] "Shutdown"/"Log out" [Up/Down] [Enter]
  3. [Ctrl]+[Alt]+[Del] [Enter] ("Log off" only)
  4. [Ctrl]+[Alt]+[t] "sudo reboot" [Enter]

(Note that "Restart"/"Reboot" can not be accessed directly via 1-3).

These methods are less likely to be found by the user than surfacing these actions additionally within the Dash. This would help in cases where a mouse/pointer is no longer available, such as "mouse-cursor did not appear after logging in to the Unity Desktop"
  https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1403287

This would also assist with "ctrl-alt-delete doesn't provide a reboot option"
  https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1403289

It is proposed by surfacing these options in the Unity Dash, that finding the actions would be more intuitive, and would make the Dash feel more complete as the defacto first-point-of-call for user initiated actions.

Implementation possibilities:

  1. Hard-code special-case actions into the Dash (requires Design review, code and ship acceptance)
  2. Implement as Dash plugin (requires code and ship acceptance)
  3. Install additional .desktop listing the Name, Icon and Aliases in /usr/share/applications/*.desktop (can be provided by a separate optional package, only requires ship acceptance)

DistroRelease: Ubuntu 14.04
Package: unity 7.2.3+14.04.20140826-0ubuntu1

tags: added: utopic vivid
description: updated
description: updated
description: updated
summary: - Unity Dash can't understand "restart", "reboot", or "shutdown"
+ Unity Dash can't understand "logout", "reboot", or "shutdown"
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity (Ubuntu):
status: New → Confirmed
Andrea Azzarone (azzar1)
Changed in unity (Ubuntu):
status: Confirmed → Incomplete
Changed in unity:
status: New → Incomplete
tags: added: needs-design
Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

@Andrea Azzarone

Why did you mark this as "Incomplete" in Unity? This is absolutely complete and can be verified by any existing user of Unity.

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

I guess you are saying that this is more specific to Ayatana Design than Unity as a whole?

Revision history for this message
Paul Sladen (sladen) wrote :

It should be possible to solve this by providing a '.desktop' file containing entries for 'shutdown', 'logout', and 'reboot/restart'; and then it's not a Unity dash issue.

Revision history for this message
Andrea Azzarone (azzar1) wrote :

Because it needs design feedback.

Revision history for this message
Paul Sladen (sladen) wrote :

Install attached to:

  ~/.local/share/applications/logout.desktop

and a "Logout" icon will appear in Unity when typing "logout".

Revision history for this message
Paul Sladen (sladen) wrote :

Install attached to:

  ~/.local/share/applications/shutdown.desktop

and a "Shutdown" icon will appear in Unity when typing "shutdown".

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

My intent, in reporting this bug, is not to find a work-around for me specifically, but is to propose a default behavior for the masses. We want to maximize the user-friendliness to a brand new user of Ubuntu Unity, without harming the work-flow of a seasoned professional.

This proposal is intended as a usability completeness, in keeping with the goal of achieving tasks via the Unity Dash.

The designers of the Unity Dash, have taken great effort to allow new users (and old) to achieve numerous tasks by hitting the super key and typing a short phrase. They've designed several scopes allowing a user find almost anything on their computer (and even scopes that search for things on the internet).

So, it seems unusual to me, that (out of all the things you can do with the dash) you cannot search and find such fundamental task as : logout, reboot, suspend, or shutdown.

I'm proposing additions to the *default* dash lookup scope, that not only make these tasks available (via the dash), but also activate the corresponding alias-phrases mentioned previously:

  - Reboot ("restart" is another good alias for this)
  - Shutdown (other intuitive aliases: "shut down", "turn off")
  - logout (aliases: "log out", "log off" and "logoff")
  - suspend/hibernate

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

While were looking into this, I've added a couple more dash additions to the original description (for completeness sake):
  - Lock Computer
  - Switch User

description: updated
Paul Sladen (sladen)
description: updated
description: updated
Revision history for this message
Paul Sladen (sladen) wrote :

Lonnie: being familiar with the Design team (having worked in it…), my suspicion is that this class of feature improvement often gets bogged down for (very) long periods of time. Therefore a method that can be deployed (or at least prototyped) immediately using existing external mechanisms is far more likely to succeed and get deployed.

The example ".desktop" might not be the ultimate solution, but being text files that are immediately deployable without needing system-level privileges I would hope are something yourself, or anyone else, could use for developing a fuller prototype and proposal.

Revision history for this message
Andrea Azzarone (azzar1) wrote :

Ok, I'm think the best place to fix this is in unity-lens-applications. We don't need design feedback to do that.
I'll add that to my todo list, if you want to contribute let me know.

Changed in unity-lens-applications:
status: New → Confirmed
Changed in unity:
status: Incomplete → Confirmed
Changed in unity (Ubuntu):
status: Incomplete → Confirmed
no longer affects: ayatana-design
tags: removed: needs-design
Changed in unity-lens-applications:
status: Confirmed → Triaged
Changed in unity:
status: Confirmed → Triaged
importance: Undecided → Low
Changed in unity-lens-applications:
importance: Undecided → Low
assignee: nobody → Andrea Azzarone (andyrock)
Changed in unity (Ubuntu):
assignee: nobody → Andrea Azzarone (andyrock)
Changed in unity:
milestone: none → 7.3.2
milestone: 7.3.2 → 7.3.1
Andrea Azzarone (azzar1)
tags: added: dash
Paul Sladen (sladen)
description: updated
Revision history for this message
Bruno Nova (brunonova) wrote :

It used to be possible to do this via the HUD (see Bug #1165420), but not anymore.

I agree with making these options available from the Dash (the "Hibernate" option could give some trouble because hibernation is disabled by default; maybe, when disabled, it could open the Help document on how to enable it?).

The best place for these options would probably be in a new "System commands" scope (or in the "Alt+F2" scope, if it was accessible from the "Home" scope and from the normal Dash with the Super key).
But, for now (Unity 7), I agree with putting some ".desktop" files in the Applications scope, and leaving a "better" solution for Unity 8.

Changed in unity (Ubuntu):
importance: Undecided → Low
Stephen M. Webb (bregma)
Changed in unity:
milestone: 7.3.1 → 7.3.2
Stephen M. Webb (bregma)
Changed in unity:
milestone: 7.3.2 → 7.3.3
tags: added: wily
tags: added: rls-w-incoming
Changed in unity:
milestone: 7.3.3 → 7.4.0
tags: added: rls-x-incoming
removed: rls-w-incoming
tags: added: unity-backlog
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

This is now done via a new session-shortcuts package

no longer affects: unity-lens-applications
Changed in unity (Ubuntu Xenial):
assignee: Andrea Azzarone (azzar1) → nobody
status: Confirmed → Fix Released
no longer affects: unity
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

session-shortcuts is now in main:
$ ./change-override -S -c main session-shortcuts
Override component to main
session-shortcuts 1.0 in xenial: universe/gnome -> main
session-shortcuts 1.0 in xenial amd64: universe/gnome/optional/100% -> main
session-shortcuts 1.0 in xenial arm64: universe/gnome/optional/100% -> main
session-shortcuts 1.0 in xenial armhf: universe/gnome/optional/100% -> main
session-shortcuts 1.0 in xenial i386: universe/gnome/optional/100% -> main
session-shortcuts 1.0 in xenial powerpc: universe/gnome/optional/100% -> main
session-shortcuts 1.0 in xenial ppc64el: universe/gnome/optional/100% -> main
session-shortcuts 1.0 in xenial s390x: universe/gnome/optional/100% -> main
Override [y|N]? y
8 publications overridden.

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

I do see reboot, shutdown, and logout in the dash now. That's great!

However, the alias-phrases proposed for each are not included. For example:

"restart" does not lead to reboot
"turn off" does not lead to shutdown

Such things are mentioned in the bug-description and comment 9:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1403293/comments/9

Also, I notice that these items still do not lead to their respective actions in the dash:
  - Suspend/hibernate
  - Lock
  - Switch User

I do see that the dash leads to their respective settings, but not the actual actions of: locking the screen, suspending or hibernating, or switching user.

The released fix is a great start, but it doesn't fulfill everything prescribed here.

Ultimately, I'm grateful progress has been made toward the completeness of the Unity Dash. Thank you.

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

The solution of this bug report,
caused this regression to all other desktop environments except Unity:

https://bugs.launchpad.net/ubuntu/+source/session-shortcuts/+bug/1551670

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.