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
=== modified file 'ubuntuone_installer/gui/qt/utils/tests/test_windows.py'
--- ubuntuone_installer/gui/qt/utils/tests/test_windows.py 2011-11-30 17:09:12 +0000
+++ ubuntuone_installer/gui/qt/utils/tests/test_windows.py 2011-12-08 13:48:24 +0000
@@ -204,9 +204,9 @@
204 self.assertEqual(self.registry.query_args, None)204 self.assertEqual(self.registry.query_args, None)
205 self.assertEqual(self.registry.set_args,205 self.assertEqual(self.registry.set_args,
206 [(('KEY', 'Ubuntu One', 0, 1,206 [(('KEY', 'Ubuntu One', 0, 1,
207 'C:\\Python27\\ubuntuone-syncdaemon.exe'), {}),207 '"C:\\Python27\\ubuntuone-syncdaemon.exe"'), {}),
208 (('KEY', 'Ubuntu One Icon', 0, 1,208 (('KEY', 'Ubuntu One Icon', 0, 1,
209 'C:\\Python27\\ubuntuone-control-panel-qt.exe --minimized'),209 '"C:\\Python27\\ubuntuone-control-panel-qt.exe" --minimized'),
210 {})])210 {})])
211211
212 def test_not_added_if_not_frozen(self):212 def test_not_added_if_not_frozen(self):
213213
=== modified file 'ubuntuone_installer/gui/qt/utils/windows.py'
--- ubuntuone_installer/gui/qt/utils/windows.py 2011-11-30 17:17:27 +0000
+++ ubuntuone_installer/gui/qt/utils/windows.py 2011-12-08 13:48:24 +0000
@@ -172,10 +172,10 @@
172def add_syncdaemon_to_autostart():172def add_syncdaemon_to_autostart():
173 """Add syncdaemon to the session's autostart."""173 """Add syncdaemon to the session's autostart."""
174 if hasattr(sys, "frozen"):174 if hasattr(sys, "frozen"):
175 sd_path = os.path.join(os.path.dirname(175 sd_path = '"%s"' % os.path.join(os.path.dirname(
176 os.path.abspath(sys.executable)),176 os.path.abspath(sys.executable)),
177 "ubuntuone-syncdaemon.exe")177 "ubuntuone-syncdaemon.exe")
178 u1cp_path = os.path.join(os.path.dirname(178 u1cp_path = '"%s"' % os.path.join(os.path.dirname(
179 os.path.abspath(sys.executable)),179 os.path.abspath(sys.executable)),
180 "ubuntuone-control-panel-qt.exe")180 "ubuntuone-control-panel-qt.exe")
181 else:181 else:

Subscribers

People subscribed via source and target branches