this part looks sketchy, if it is not executed as root in total:
+        if self.wakecomputer and not isTmpFile:
+            f = tempfile.NamedTemporaryFile()
+            f.write(final_text)
+            f.seek(0)
+            #subprocess.call(['gksudo', '--message', 'testing', 'echo'])
+            subprocess.call(['sudo', 'cp', '--remove-destination', f.name, 
filename])
+            subprocess.call(['sudo', 'chmod', '700', filename])
+            f.close()

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/909189

Title:
  Request for new upstream version 1.2 upgrade.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wakeup/+bug/909189/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to