I'm using catfish 1.4.7 on Openbox (no DE). When I'm trying to open directory from search results, following error is thrown:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/catfish/CatfishWindow.py", line 1185, in on_treeview_row_activated
File "/usr/lib/python3.7/site-packages/catfish/CatfishWindow.py", line 948, in open_file
os.environ.get("XDG_CURRENT_DESKTOP").lower() == 'xfce':
AttributeError: 'NoneType' object has no attribute 'lower'
As far as I understand root cause is that XDG_CURRENT_DESKTOP is not set on my system (echo $XDG_CURRENT_DESKTOP returns empty string). Simple ugly fix like this str(os.environ.get("XDG_CURRENT_DESKTOP")).lower() == 'xfce' does fix the issue.
Here's the line of code which is to blame: https://github.com/xfce-mirror/catfish/blob/5c3e880cee423c23eeb5c091e653283762d83bf8/catfish/CatfishWindow.py#L948
Sean Davis referenced this bugreport in commit 95d50b285245a1814a4fbd86ea3ee235eda545a9
Fix opening directories without XDG_CURRENT_DESKTOP (bug #15099)
Thanks for the bug report! It was resolved with the above commit.