[Xfce4-commits] [apps/catfish] 01/01: Force directories opened in Xfce to use the preferred file manager (bug #14483)

noreply at xfce.org noreply at xfce.org
Sun Jul 1 03:47:42 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/catfish.

commit f2bfb28debbc033d45ea451bbab016f60ade5e24
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Jun 30 21:47:35 2018 -0400

    Force directories opened in Xfce to use the preferred file manager (bug #14483)
---
 catfish/CatfishWindow.py |  3 +++
 po/catfish.pot           | 50 ++++++++++++++++++++++++------------------------
 2 files changed, 28 insertions(+), 25 deletions(-)

diff --git a/catfish/CatfishWindow.py b/catfish/CatfishWindow.py
index 15ab6d6..b09d8f1 100644
--- a/catfish/CatfishWindow.py
+++ b/catfish/CatfishWindow.py
@@ -943,6 +943,9 @@ class CatfishWindow(Window):
         logger.debug("Opening %s" % filename)
         if filename.endswith('.AppImage') and os.access(filename, os.X_OK):
             command = [filename]
+        elif os.path.isdir(filename) and \
+                os.environ.get("XDG_CURRENT_DESKTOP").lower() == 'xfce':
+            command = ['exo-open', '--launch', 'FileManager', filename]
         else:
             command = ['xdg-open', filename]
         try:
diff --git a/po/catfish.pot b/po/catfish.pot
index 3ec8ea0..b6627a4 100644
--- a/po/catfish.pot
+++ b/po/catfish.pot
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-06-30 08:38-0400\n"
+"POT-Creation-Date: 2018-06-30 21:44-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -137,7 +137,7 @@ msgstr ""
 msgid "File Type"
 msgstr ""
 
-#: ../data/ui/CatfishWindow.ui.h:27 ../catfish/CatfishWindow.py:1129
+#: ../data/ui/CatfishWindow.ui.h:27 ../catfish/CatfishWindow.py:1132
 msgid "Modified"
 msgstr ""
 
@@ -312,109 +312,109 @@ msgstr ""
 msgid "Begin Search"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:955
+#: ../catfish/CatfishWindow.py:958
 #, python-format
 msgid "\"%s\" could not be opened."
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1001
+#: ../catfish/CatfishWindow.py:1004
 #, python-format
 msgid "\"%s\" could not be saved."
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1018
+#: ../catfish/CatfishWindow.py:1021
 #, python-format
 msgid "\"%s\" could not be deleted."
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1058
+#: ../catfish/CatfishWindow.py:1061
 #, python-format
 msgid "Save \"%s\" as…"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1093
+#: ../catfish/CatfishWindow.py:1096
 #, python-format
 msgid ""
 "Are you sure that you want to \n"
 "permanently delete \"%s\"?"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1097
+#: ../catfish/CatfishWindow.py:1100
 #, python-format
 msgid ""
 "Are you sure that you want to \n"
 "permanently delete the %i selected files?"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1100
+#: ../catfish/CatfishWindow.py:1103
 msgid "If you delete a file, it is permanently lost."
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1123
+#: ../catfish/CatfishWindow.py:1126
 msgid "Filename"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1125
+#: ../catfish/CatfishWindow.py:1128
 msgid "Size"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1127
+#: ../catfish/CatfishWindow.py:1130
 msgid "Location"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1139
+#: ../catfish/CatfishWindow.py:1142
 msgid "Preview"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1147
+#: ../catfish/CatfishWindow.py:1150
 msgid "Details"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1366
+#: ../catfish/CatfishWindow.py:1369
 msgid "Today"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1368
+#: ../catfish/CatfishWindow.py:1371
 msgid "Yesterday"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1449
+#: ../catfish/CatfishWindow.py:1452
 msgid "No files found."
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1451
+#: ../catfish/CatfishWindow.py:1454
 msgid ""
 "Try making your search less specific\n"
 "or try another directory."
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1457
+#: ../catfish/CatfishWindow.py:1460
 msgid "1 file found."
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1459
+#: ../catfish/CatfishWindow.py:1462
 #, python-format
 msgid "%i files found."
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1465
+#: ../catfish/CatfishWindow.py:1468
 msgid "bytes"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1573 ../catfish/CatfishWindow.py:1582
+#: ../catfish/CatfishWindow.py:1576 ../catfish/CatfishWindow.py:1585
 msgid "Searching…"
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1575
+#: ../catfish/CatfishWindow.py:1578
 msgid "Results will be displayed as soon as they are found."
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1580
+#: ../catfish/CatfishWindow.py:1583
 #, python-format
 msgid "Searching for \"%s\""
 msgstr ""
 
-#: ../catfish/CatfishWindow.py:1669
+#: ../catfish/CatfishWindow.py:1672
 #, python-format
 msgid "Search results for \"%s\""
 msgstr ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list