GNOME Bugzilla – Bug 761241
Change desktop directory using Alt+Home
Last modified: 2016-03-17 13:10:25 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
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
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.
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).
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.
Review of attachment 323314 [details] [review]: LGTM thanks! Can you push to 3-20 and master?