GNOME Bugzilla – Bug 756370
Cannot open new window using the dash context menu
Last modified: 2016-09-22 12:59:30 UTC
OS: Arch Linux Nautilus version: 3.18.0 Steps: 1. Open Nautilus window. Go to or remain on the default nautilus directory (home in my case) 2. In Gnome 3, right click the nautilus icon and select "New Window", or go to a terminal and execute "nautilus" Instead of opening two windows that were both at the default nautilus directory, the existing nautilus window comes into focus and the second one is not created. This still happens if you navigate to other directories in nautilus, as long as you're in the default directory as you try to open a new window.
I can confirm this problem
Opening the same window when in home from terminal is expected, you need to pass the option to create a new window. However clicking New Window should open a new one, and it does for me. So not sure how to reproduce this...
*** Bug 756499 has been marked as a duplicate of this bug. ***
*** Bug 756655 has been marked as a duplicate of this bug. ***
I am under Fedora 23 and can confirm this bug as well. The screencast in duplicate bug 756499 mirrors my experience exactly. I am also using X11 and not Wayland if it helps.
is always reproducible even restarting nautilus (killall -9 nautilus)? if so, in which case is always reproducible for you?
Carols, I agree that the bug is not reproducible when you run "nautilus --new-window" twice. However, even after I kill all instances of nautilus, right clicking the nautilus icon and selecting "New Window" twice still results in the bug.
(In reply to Ian Kropp from comment #7) > Carols, I agree that the bug is not reproducible when you run "nautilus > --new-window" twice. > > However, even after I kill all instances of nautilus, right clicking the > nautilus icon and selecting "New Window" twice still results in the bug. **Carlos
(In reply to Ian Kropp from comment #7) > Carols, I agree that the bug is not reproducible when you run "nautilus > --new-window" twice. > > However, even after I kill all instances of nautilus, right clicking the > nautilus icon and selecting "New Window" twice still results in the bug. AH! Got it! Should be easy to fix. However it's a completely different bug that the ones I make duplicates... =(
-> renamed title for clarity
*** Bug 756700 has been marked as a duplicate of this bug. ***
Created attachment 313726 [details] [review] desktop file: specify new window action So Gnome Shell is aware of it and can activate it. Until now Gnome Shell was guessing it was able to open a new window given the app.new-window action. However, what Gnome Shell does in this case is just call activate of the application, which is not the "new-window" action for nautilus, and instead only presents the current window. One can argue that Gnome Shell should not try to guess the available actions to, after that, instead of using them, just activate the application.
There are two problems here. Gnome shell shows a New Window entry when it's not specified in the desktop file of nautilus, but as a GAction of the application. However gnome shell calls the activate of the application instead of the new-window action, so that makes nautilus just show the current window. Patch for gnome shell here https://bugzilla.gnome.org/show_bug.cgi?id=756700
The other problem is that nautilus should implement the new-window action in the desktop file
Created attachment 315368 [details] [review] desktop file: specify new window action So Gnome Shell is aware of it and can activate it. Until now Gnome Shell was guessing it was able to open a new window given the app.new-window action. However, what Gnome Shell does in this case is just call activate of the application, which is not the "new-window" action for nautilus, and instead only presents the current window. One can argue that Gnome Shell should not try to guess the available actions to, after that, instead of using them, just activate the application.
Attachment 315368 [details] pushed as 3e873d5 - desktop file: specify new window action
*** Bug 760813 has been marked as a duplicate of this bug. ***
I am experiencing a different version of this bug on Nautilus 3.20. I wanted to comment here before I open a new bug. I can't open a new window of nautilus from the dash when using the middle-click button. The symptoms are all the same: 1) If no window is open, it works. 2) If a window is open, but not in the default directory, it works. 3) If a window is open and has a tab on the default directory, then focus is shifted to that window and that tab. It will even change workspace. Similarly, it affects extensions like: https://extensions.gnome.org/extension/413/dash-hotkeys/ when using Shift+Super to open a new window. Should I open a new bug? PS: I can't say if this happens on 3.18 though.
(In reply to franglais125 from comment #18) > I am experiencing a different version of this bug on Nautilus 3.20. I wanted > to comment here before I open a new bug. > > I can't open a new window of nautilus from the dash when using the > middle-click button. The symptoms are all the same: > 1) If no window is open, it works. > 2) If a window is open, but not in the default directory, it works. > 3) If a window is open and has a tab on the default directory, then focus is > shifted to that window and that tab. It will even change workspace. > > Similarly, it affects extensions like: > https://extensions.gnome.org/extension/413/dash-hotkeys/ when using > Shift+Super to open a new window. > > Should I open a new bug? > > PS: I can't say if this happens on 3.18 though. Follow up in https://bugzilla.gnome.org/show_bug.cgi?id=766808