Skip to content

Opening a single file opens all files using specific desktop entries #2771

@zsugabubus

Description

@zsugabubus
 * 5.0.1
 * Windowed
 * Arch Linux
 * 64 bit

Issue
Opening a single file, either:

  • Passes many filenames to a single program. (E.g. %F)
  • Starts many programs with single filenames. (E.g. %u)

So basically clicking on a single file behaves like I'd open all files in the directory.

Steps to reproduce

  1. Pick a desktop entry file that has Exec=...%F or %u specifiers. (grep %[Fu] -r /usr/share/applications).
  2. Open a file with this program and you should face with the above mentioned issue.

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions