~ubuntu-branches/ubuntu/saucy/nautilus-dropbox/saucy

« back to all changes in this revision

Viewing changes to debian/patches/use-pkexec-to-get-root-rights.patch

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2011-10-29 16:28:59 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20111029162859-tk6xyv31rbfxlwt1
Tags: 0.7.0-2
Fix the distribution in the changelog entry for version 0.7.0-1
(UNRELEASED → unstable).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Use pkexec to execute Dropbox's installation as root
 
2
 When the user has to install the missing Dropbox software, we call
 
3
 pkexec to try to get the required root rights.
 
4
Author: Raphaël Hertzog <hertzog@debian.org>
 
5
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/nautilus-dropbox/+bug/821212
 
6
 
 
7
--- a/dropbox.in
 
8
+++ b/dropbox.in
 
9
@@ -1234,7 +1234,10 @@ options:
 
10
 
 
11
         # install dropbox!!!
 
12
         try:
 
13
-            download()
 
14
+            status = os.system("pkexec dropbox update")
 
15
+            if status != 0:
 
16
+                console_print(u"The installation of Dropbox failed.")
 
17
+                return
 
18
         except:
 
19
             pass
 
20
         else: