Skip to content

get_exo_preferred_file_manager: check if the requested key exists before actually use it

Mamoru TASAKA requested to merge mtasaka/catfish:showin-filemanager-fix into master

In get_exo_preferred_file_manager(), when ~/.config/xfce4/helpers.rc exists, this function gets application settings from this file, then tries to use the value for "FileManager" key.

However in some cases (for example, using $ xfce4-mime-settings, changing "Terminal Emulator" only), this rc file does not contain "FileManager" key. Currently in this case, catfish gets traceback.

To fix this, check if "FileManager" key exists before actually using it.

Closes #64 (closed) .

Merge request reports