Merge lp:~ralsina/ubuntuone-windows-installer/quote_autostart into lp:ubuntuone-windows-installer

Proposed by Roberto Alsina
Status: Merged
Approved by: Natalia Bidart
Approved revision: 95
Merged at revision: 97
Proposed branch: lp:~ralsina/ubuntuone-windows-installer/quote_autostart
Merge into: lp:ubuntuone-windows-installer
Diff against target: 32 lines (+4/-4)
2 files modified
ubuntuone_installer/gui/qt/utils/tests/test_windows.py (+2/-2)
ubuntuone_installer/gui/qt/utils/windows.py (+2/-2)
To merge this branch: bzr merge lp:~ralsina/ubuntuone-windows-installer/quote_autostart
Reviewer Review Type Date Requested Status
Natalia Bidart (community) Approve
dobey (community) Approve
Review via email: mp+84952@code.launchpad.net

Commit message

Quote the paths for autostart.

Description of the change

This branch quotes the paths in the registry autostart, which was suggested by rye to be the fix for the bug.

I have never been able to reproduce it myself, so it needs a IRL test from either rye or elopio.

To post a comment you must log in.
Revision history for this message
dobey (dobey) :
review: Approve
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntuone_installer/gui/qt/utils/tests/test_windows.py'
2--- ubuntuone_installer/gui/qt/utils/tests/test_windows.py 2011-11-30 17:09:12 +0000
3+++ ubuntuone_installer/gui/qt/utils/tests/test_windows.py 2011-12-08 13:48:24 +0000
4@@ -204,9 +204,9 @@
5 self.assertEqual(self.registry.query_args, None)
6 self.assertEqual(self.registry.set_args,
7 [(('KEY', 'Ubuntu One', 0, 1,
8- 'C:\\Python27\\ubuntuone-syncdaemon.exe'), {}),
9+ '"C:\\Python27\\ubuntuone-syncdaemon.exe"'), {}),
10 (('KEY', 'Ubuntu One Icon', 0, 1,
11- 'C:\\Python27\\ubuntuone-control-panel-qt.exe --minimized'),
12+ '"C:\\Python27\\ubuntuone-control-panel-qt.exe" --minimized'),
13 {})])
14
15 def test_not_added_if_not_frozen(self):
16
17=== modified file 'ubuntuone_installer/gui/qt/utils/windows.py'
18--- ubuntuone_installer/gui/qt/utils/windows.py 2011-11-30 17:17:27 +0000
19+++ ubuntuone_installer/gui/qt/utils/windows.py 2011-12-08 13:48:24 +0000
20@@ -172,10 +172,10 @@
21 def add_syncdaemon_to_autostart():
22 """Add syncdaemon to the session's autostart."""
23 if hasattr(sys, "frozen"):
24- sd_path = os.path.join(os.path.dirname(
25+ sd_path = '"%s"' % os.path.join(os.path.dirname(
26 os.path.abspath(sys.executable)),
27 "ubuntuone-syncdaemon.exe")
28- u1cp_path = os.path.join(os.path.dirname(
29+ u1cp_path = '"%s"' % os.path.join(os.path.dirname(
30 os.path.abspath(sys.executable)),
31 "ubuntuone-control-panel-qt.exe")
32 else:

Subscribers

People subscribed via source and target branches