From 1ffc3b70cebfb6bcc900517eb00b9471cb1532ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 5 Sep 2018 17:33:14 +0200 Subject: New upstream version 0.9.11 --- raphodo/constants.py | 48 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 9 deletions(-) (limited to 'raphodo/constants.py') diff --git a/raphodo/constants.py b/raphodo/constants.py index 8406456..727e844 100644 --- a/raphodo/constants.py +++ b/raphodo/constants.py @@ -434,10 +434,6 @@ class StandardFileLocations(Enum): downloads = 8 -class FileManagerType(Enum): - regular = 1 - select = 2 - max_remembered_destinations = 10 @@ -502,20 +498,54 @@ class Desktop(Enum): unknown = 11 +class FileManagerType(Enum): + regular = 1 + select = 2 + dir_only_uri = 3 + + +FileManagerBehavior = dict( + nautilus=FileManagerType.regular, + dolphin=FileManagerType.select, + caja=FileManagerType.dir_only_uri, + thunar=FileManagerType.dir_only_uri, + nemo=FileManagerType.regular, + pcmanfm=FileManagerType.dir_only_uri, +) +FileManagerBehavior['pcmanfm-qt'] = FileManagerType.dir_only_uri + + +DefaultFileBrowserFallback = dict( + gnome='nautilus', + ubuntugnome='nautilus', + popgnome='nautilus', + unity='nautilus', + kde='dolphin', + cinnamon='nemo', + mate='caja', + xfce='thunar', + lxde='pcmanfm', + lxqt='pcmanfm-qt', +) + + class Distro(Enum): debian = 1 ubuntu = 2 fedora = 3 - unknown = 4 - manjaro = 5 - arch = 6 - neon = 7 + neon = 4 + linuxmint = 5 + korora = 6 + arch = 7 opensuse = 8 - gentoo = 9 + manjaro = 9 galliumos = 10 peppermint = 11 antergos = 12 elementary = 13 + centos = 14 + gentoo = 15 + unknown = 20 orientation_offset = dict( -- cgit v1.2.3