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
Opening a single file opens all files using specific desktop entries #2771
Comments
|
Can reproduce on arch with nemo 5.0.1, with |
|
Can you try running the following command: and try to reproduce. Nemo was changed to allow the sort order in nemo to be maintained when passing multiple files to the image viewer here: 3cb59f8 It seems to fix feh for me (the default is The behavior you're reporting is actually how our xviewer works (and how I expect it to) when opening a single image in a folder, but we shouldn't change existing behavior for other programs. |
|
After running the command only the selected image is opened, even after reverting the .desktop file for feh. |
|
So I'm curious, why is the new behavior an issue? It's not actually using any more memory (it doesn't load images until they're selected). I'm somewhat disinclined to change this back, particularly if it is really undesirable for someone, it can be disabled anyhow. |
|
Because without changing the desktop entry or the |
viewer launch if its commandline supports multiple files. As a result of #2705, when a single image file is selected and launched, the full file list for the current directory is appended for certain viewers. This is a problem if the viewer's desktop file Exec line doesn't support multiple files, as it can cause multiple instances of a program to launch when that was not the intent. Only apply this new behavior if the Exec line accepts multiple files (%U and %F). ref: #2771
|
With 8b9cdfc, I've made this new behavior only apply if the command line accepts a list of files (%F or %U), otherwise the old behavior is kept. Since only the selected image is loaded even when receiving an entire file list, I've left that behavior alone, as it's essentially the same as previous behavior. |
|
👍 Works as expected with %u and external sorting enabled. |
|
Thanks for the quick feedback and fix. Now I understand that is not a bug but a (great) feature. At first, it was just strange and I thought this behavior is not specific to images but to all kind files. After all, I think it is good that |
Issue
Opening a single file, either:
%F)%u)So basically clicking on a single file behaves like I'd open all files in the directory.
Steps to reproduce
grep %[Fu] -r /usr/share/applications).Expected behaviour
Only a single program is started with the only selected filename.
Other information
I have updated from 4.8.4, where it worked well.
I noticed this issue with a custom feh.desktop file that has
Exec=feh %F. Previously it opened only the selected files (or a single file when I had clicked on a single file), but now it opens all files in the directory.I deleted my custom desktop file so it used /usr/share/applications/feh.desktop that has
Exec=feh %u. Now clicking on a single file opens separate feh processes for each picture in the directory.The text was updated successfully, but these errors were encountered: