[Xfce4-commits] [apps/xfce4-panel-profiles] 05/162: Fix saving, requires python3

noreply at xfce.org noreply at xfce.org
Fri Jul 13 13:08:24 CEST 2018


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

o   c   h   o   s   i       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/xfce4-panel-profiles.

commit a52a598d4be968839d3b05cc2851b60d11d7aae8
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Mon Jul 20 19:28:55 2015 -0400

    Fix saving, requires python3
---
 configure                        | 2 +-
 xfpanel-switch/xfpanel-switch.py | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 4ea4633..e183fb4 100755
--- a/configure
+++ b/configure
@@ -3,7 +3,7 @@
 APPNAME=xfpanel-switch
 VERSION=1.0
 
-PYTHON=python
+PYTHON=python3
 
 help () {
     echo "Supported options are:"
diff --git a/xfpanel-switch/xfpanel-switch.py b/xfpanel-switch/xfpanel-switch.py
index f7d3662..6919d11 100644
--- a/xfpanel-switch/xfpanel-switch.py
+++ b/xfpanel-switch/xfpanel-switch.py
@@ -53,6 +53,9 @@ class XfpanelSwitch:
         self.tree_model = self.treeview.get_model()
         for config in self.get_saved_configurations():
             self.tree_model.append(config)
+        
+        if not os.path.exists(self.save_location):
+            os.makedirs(self.save_location)
 
         self.window.show()
 

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


More information about the Xfce4-commits mailing list