linuxmint / nemo

File browser for Cinnamon
GNU General Public License v2.0
1.17k stars 297 forks source link

Nemo doesn't respect the default open with application with .desktop files #3238

Open guzz46 opened 1 year ago

guzz46 commented 1 year ago
 * Nemo version (nemo --version): 5.6.4-1.1
 * Is issue with desktop or windowed nemo?: nemo
 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...): tumbleweed
 * Graphics hardware *and* driver used: AMD opensource driver
 * 32 or 64 bit: 64bit 

Issue Nemo doesn't respect the default open with application with .desktop files

Steps to reproduce Configure Nemo to open .desktop files by default in a text editor

Expected behaviour To open .desktop files in a text editor when clicked on

Other information Instead Nemo tries to launch the application inside the .desktop file

Jeremy7701 commented 1 year ago

Why would you want to open an executable file with a text editor, by default? It's the job of a .desktop file to launch a program - although (if needed) you could edit a .desktop file with a text editor.

guzz46 commented 1 year ago

I believe a file manager should do what you configure it to do regardless of the reason, someone may just want to view and edit .desktop files when they click on them, I believe most people don't launch their applications by clicking on .desktop files anyway, they launch them via a menu or panel shortcut, but if they did want to they can either right click and select execute, or just configure nemo to launch them when clicked on.

Jeremy7701 commented 1 year ago

See https://www.baeldung.com/linux/desktop-entry-files

guzz46 commented 1 year ago

I know what a .desktop file is, I just wondered why nemo ignores the default application set for .desktop files, if you configure nemo to open flac files in mpv then it will open flac files in mpv, but if you configure nemo to open .desktop files in a text editor why does it ignore that setting and launch the application inside the .desktop file instead?