[gnome-schedule] lp:bug:1618106: execute referenced before assignment
- From: Gaute Hope <gauteh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-schedule] lp:bug:1618106: execute referenced before assignment
- Date: Mon, 29 Aug 2016 21:04:42 +0000 (UTC)
commit ae3cd39f57734977a40270631fff14b2667ba75c
Author: Gaute Hope <eg gaute vetsj com>
Date: Mon Aug 29 23:04:15 2016 +0200
lp:bug:1618106: execute referenced before assignment
src/mainWindow.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/mainWindow.py b/src/mainWindow.py
index ca9e144..17c934e 100644
--- a/src/mainWindow.py
+++ b/src/mainWindow.py
@@ -704,10 +704,9 @@ class main:
tmp.flush ()
self.temp_files.append ((tmp, path))
- if self.root == 1:
- if self.user != "root":
- execute = "su " + self.user + " -c \"" + self.user_shell + " " + path
- os.chown (path, self.uid, self.gid)
+ if self.root == 1 and self.user != "root":
+ execute = "su " + self.user + " -c \"" + self.user_shell + " " + path
+ os.chown (path, self.uid, self.gid)
else:
execute = self.user_shell + " " + path
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]