summaryrefslogtreecommitdiff
path: root/raphodo/constants.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-05 18:00:42 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-05 18:00:42 +0200
commit3a434a769dbcc6e0419e3233314b026698d53f26 (patch)
treed4b79b81641cfdbc74e40a079eb3fd3704cf8302 /raphodo/constants.py
parentd7ceb38b02defb29d76ad5bb861a8573654a4c86 (diff)
parentb271f99f05de699e750815f879632d438f80a184 (diff)
Merge branch 'feature/upstream' into developdevelop
Diffstat (limited to 'raphodo/constants.py')
-rw-r--r--raphodo/constants.py48
1 files changed, 39 insertions, 9 deletions
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(