Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting several files and hitting Enter only opens one of them #2478

Closed
teo1978 opened this issue Aug 7, 2020 · 5 comments
Closed

Selecting several files and hitting Enter only opens one of them #2478

teo1978 opened this issue Aug 7, 2020 · 5 comments

Comments

@teo1978
Copy link

teo1978 commented Aug 7, 2020

* Nemo version (nemo --version) 4.4.2
 * Is issue with desktop or windowed nemo? Desktop
 * Distribution - Ubuntu 20.04
 * Graphics hardware *and* driver used: Intel Corporation 3rd Gen Core processor Graphics Controller and NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (don't know about the driver since it doesn't show up in System Info)
 * 64 bit

Issue

Steps to reproduce

  • Open a folder in Nemo
  • Select multiple files
  • Hit the Enter key

Expected behaviour

Should open all the selected files with their default application (whether it's the same for all or not)

Observed behavior

Only opens one of the selected files

Other information

@Jeremy7701
Copy link
Contributor

No fault could be reproduced in nemo 4.6.4 on LMDE4

Selected multiple PDF files; pressing enter caused opening multiple copies of evince ["Document Viewer"]
Selected 5 text files; pressing enter caused opening of a single copy of xed ["Text Editor"] - but with 5 appropriate tabs.

@ferdnyc
Copy link

ferdnyc commented Aug 20, 2020

@Jeremy7701

I guess one question would be, what happens if you select three text files and two PDF files, then hit Enter?

It sounds like @teo1978 may be using an application that advertises as supporting multiple URLs/files (%F or %U in the Exec= line of its .desktop file), so they all get passed to it, but then it ignores all but the first one.

I just tried something similar in Nemo 4.6.4 on Fedora 32 — I selected two JPGs, a PNG, a GIF, and a ZIP, and then hit Enter. What I got was:

  • A file-roller window containing the ZIP file
  • A gthumb window with all four images open in it.

So, yeah, it seems like Nemo will do exactly the right thing, if apps are configured properly. It's likely a problem with how the default app is configured on your system (in its .desktop file) for one of the file types you had selected, @teo1978. (Or maybe a Nemo 4.4.2 defect that's been fixed since.)

@Jeremy7701
Copy link
Contributor

O.K I selected:-
2 text files
1 sqlite file
1 tar.gz file
1 zip file
1 deb file
then pressed enter.
I expected 5 Windows to be opened, but unexpectedly, nemo warned me that 4 seperate applications would be opened, if I continued...
So there is a tiny bug there...
Pressing enter did indeed open FIVE windows.

@ferdnyc
Copy link

ferdnyc commented Aug 21, 2020

Hey, man, counting is hard. You've gotta figure out what digit to start from, then keep them all in the right order, be careful not to skip any...

@mtwebster
Copy link
Member

It said 4 applications, not 4 windows. The zip and tar.gz files are both opened by the same application (usually file-roller).

I'm just explaining what's happening here. Nemo doesn't think there are 5 applications because there technically aren't - file-roller opens additional windows for multiple files, but they are all part of the same instance of file-roller.

2 text files - editor
1 sqlite file - ??
2 archive files - fileroller
1 deb file - gdebi

It's not possible to know how each app will behave, or handle multiple arguments (as mentioned previously), so nemo can't predict how many windows an application might open, it's simply passing file names along to the appropriate handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants