After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761241 - Change desktop directory using Alt+Home
Change desktop directory using Alt+Home
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Desktop
3.18.x
Other Linux
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-01-28 13:20 UTC by Matt Davis
Modified: 2016-03-17 13:10 UTC
See Also:
GNOME target: ---
GNOME version: 3.17/3.18


Attachments
nautilus-window: disable Alt+Home for desktop view (1.37 KB, patch)
2016-03-05 18:02 UTC, Alexandru Pandelea
reviewed Details | Review
nautilus-desktop-window: disable Alt+Home for desktop view (1.19 KB, patch)
2016-03-07 19:07 UTC, Alexandru Pandelea
committed Details | Review

Description Matt Davis 2016-01-28 13:20:19 UTC
Overview:

The icons shown on the desktop can be changed from /home/<user>/Desktop to /home/<user> by pressing Alt+Home when the desktop is active. This appears to be standard Nautilus behaviour, however I would expect a special case for the desktop.


Steps to reproduce:

Click on the Gnome 3 desktop and press ALt+Home on the keyboard.


Actual results:

Desktop changes to displaying content of /home/<user>


Expected results:

Desktop remains displaying content of /home/<user>/Desktop


Build date & hardware:

GNOME nautilus 3.18.4                3.18.4-1.fc23
GNOME Shell 3.18.3                   3.18.3-1.fc23
Linux 4.3.3-301.fc23.x86_64 #1 SMP Fri Jan 15 14:03:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Comment 1 Carlos Soriano 2016-01-28 13:44:05 UTC
oh, it's like an easter egg.

Marked for newcomers. To fix it, make sure the GAction assigned to that shortcut is disabled when the view is NAUTILUS_DESKTOP_VIEW
Comment 2 Alexandru Pandelea 2016-03-05 18:02:44 UTC
Created attachment 323154 [details] [review]
nautilus-window: disable Alt+Home for desktop view

Alt+Home shortcut changed the items shown on desktop to those in /home/<user>/

In order to fix this, when the shortcut is pressed, it is checked that the
window is not a desktop window before switching to the home dir of the user.
Comment 3 Carlos Soriano 2016-03-06 21:22:50 UTC
Review of attachment 323154 [details] [review]:

Instead of poluting files-view with desktop checks. Can you disable the action in the desktop-view itself? I think it's doable cleanly (didn't check it).
Comment 4 Alexandru Pandelea 2016-03-07 19:07:46 UTC
Created attachment 323314 [details] [review]
nautilus-desktop-window: disable Alt+Home for desktop view

The shortcut Alt+Home should not change the items from desktop to those
in /home/<user>/

In order to fix this, the accelerator corresponding to this shortcut was
disabled for the desktop window.
Comment 5 Carlos Soriano 2016-03-14 21:04:46 UTC
Review of attachment 323314 [details] [review]:

LGTM thanks!
Can you push to 3-20 and master?