Linux Lite Forums

General => Security & Bug Fixes => Topic started by: dihonomo on June 17, 2022, 09:04:27 AM

Title: Application to handle directories in 6.0
Post by: dihonomo on June 17, 2022, 09:04:27 AM
To expand from my previous message (https://www.linuxliteos.com/forums/security-bug-fixes/(bug)-localshareapplicationsexo-file-manager-desktop-wrong-application/msg57569 (https://www.linuxliteos.com/forums/security-bug-fixes/(bug)-localshareapplicationsexo-file-manager-desktop-wrong-application/msg57569)), I have found that the setting controlling what application opens directories (by default) is still problematic.

The file "exo-file-manager.desktop" has disappeared from "/usr/share/applications", and  "~/.local/share/applications/defaults.list" points now (via symlink) to "/etc/gnome/defaults.list" where the two entries controlling "inode/directory" assign "org.gnome.Nautilus.desktop" and "Thunar-folder-handler.desktop" to handle directories.

However, none of these exist on a clean Linux Lite 6.0 install.

My solution to the problem was to create "~.local/share/applications/exo-file-manager.desktop" that contains:
Code: [Select]
[Desktop Entry]
Version=1.0
Type=Application
Exec=exo-open --launch FileManager %u
Icon=system-file-manager
StartupNotify=true
Terminal=false
Categories=Utility;X-XFCE;X-Xfce-Toplevel;
OnlyShowIn=XFCE;
X-XFCE-MimeType=inode/directory;x-scheme-handler/trash;
Name=File Manager
Comment=Browse the file system
Hidden=true

and then to replace the two entries in "/etc/gnome/defaults.list":
Code: [Select]
inode/directory=org.gnome.Nautilus.desktop
inode/directory=Thunar-folder-handler.desktop

with the following:
Code: [Select]
inode/directory=exo-file-manager.desktop
Title: Re: Application to handle directories in 6.0
Post by: Jerry on June 17, 2022, 07:15:00 PM
Thanks for the report. I'll take a look :)
Title: Re: Application to handle directories in 6.0
Post by: dihonomo on June 18, 2022, 04:43:50 AM
I found this problem when trying to "Open Folder" in Transmission: I was expecting the download folder to opened in Thunar, but Catfish started instead :shrug
Title: Re: Application to handle directories in 6.0
Post by: Jerry on June 18, 2022, 04:46:41 AM
Nice catch :)

Sent from my Mobile phone using Tapatalk

Title: Re: Application to handle directories in 6.0
Post by: Jerry on June 18, 2022, 05:36:23 AM
I'm yet to test, but I'm hoping that this will fix what's existed in LL for some time now. Catfish is opening instead of Thunar sometimes. Surprised many people haven't reported it.

Sent from my Mobile phone using Tapatalk

Title: Re: Application to handle directories in 6.0
Post by: Jerry on June 18, 2022, 06:54:26 AM
Fix will be in 6.2 I used to wonder why in Disks, clicking on a partition link would open Catfish. Now with the fix, it opens the file manager like it should!
I've added Hidden=true to your original post in the desktop file, we don't need it in the menus.

You Sir, are the master bug squasher! Keep'm coming :)
Title: Re: Application to handle directories in 6.0
Post by: dihonomo on June 18, 2022, 08:50:44 AM
 :bow