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 756370 - Cannot open new window using the dash context menu
Cannot open new window using the dash context menu
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
3.18.x
Other Linux
: Normal minor
: 3.18
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 756700 760813 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-10-11 03:11 UTC by Ian Kropp
Modified: 2016-09-22 12:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
desktop file: specify new window action (1.28 KB, patch)
2015-10-20 07:29 UTC, Carlos Soriano
none Details | Review
desktop file: specify new window action (1.28 KB, patch)
2015-11-12 20:41 UTC, Carlos Soriano
committed Details | Review

Description Ian Kropp 2015-10-11 03:11:03 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.
Comment 1 andrea 2015-10-12 20:25:48 UTC
I can confirm this problem
Comment 2 Carlos Soriano 2015-10-15 08:53:18 UTC
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...
Comment 3 Carlos Soriano 2015-10-15 09:43:22 UTC
*** Bug 756499 has been marked as a duplicate of this bug. ***
Comment 4 Carlos Soriano 2015-10-15 17:32:17 UTC
*** Bug 756655 has been marked as a duplicate of this bug. ***
Comment 5 zachary.sandberg 2015-10-15 17:47:02 UTC
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.
Comment 6 Carlos Soriano 2015-10-15 17:57:15 UTC
is always reproducible even restarting nautilus (killall -9 nautilus)? if so, in which case is always reproducible for you?
Comment 7 Ian Kropp 2015-10-15 18:11:10 UTC
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.
Comment 8 Ian Kropp 2015-10-15 18:14:49 UTC
(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
Comment 9 Carlos Soriano 2015-10-15 18:26:08 UTC
(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... =(
Comment 10 Carlos Soriano 2015-10-15 18:29:02 UTC
-> renamed title for clarity
Comment 11 Carlos Soriano 2015-10-20 07:28:37 UTC
*** Bug 756700 has been marked as a duplicate of this bug. ***
Comment 12 Carlos Soriano 2015-10-20 07:29:08 UTC
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.
Comment 13 Carlos Soriano 2015-10-20 07:30:34 UTC
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
Comment 14 Carlos Soriano 2015-10-20 07:30:55 UTC
The other problem is that nautilus should implement the new-window action in the desktop file
Comment 15 Carlos Soriano 2015-11-12 20:41:21 UTC
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.
Comment 16 Carlos Soriano 2015-11-12 20:50:19 UTC
Attachment 315368 [details] pushed as 3e873d5 - desktop file: specify new window action
Comment 17 Carlos Soriano 2016-01-19 09:24:38 UTC
*** Bug 760813 has been marked as a duplicate of this bug. ***
Comment 18 franglais125 2016-05-16 22:49:20 UTC
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.
Comment 19 Carlos Soriano 2016-09-22 12:59:30 UTC
(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