Merge lp:~canonical-platform-qa/ubiquity/no-gtk-modules into lp:ubiquity

Proposed by Max Brustkern on 2016-12-16
Status: Merged
Approved by: Mathieu Trudel-Lapierre on 2017-01-23
Approved revision: 6502
Merged at revision: 6510
Proposed branch: lp:~canonical-platform-qa/ubiquity/no-gtk-modules
Merge into: lp:ubiquity
Diff against target: 38 lines (+9/-2)
2 files modified
bin/ubiquity-dm (+5/-1)
bin/ubiquity-wrapper (+4/-1)
To merge this branch: bzr merge lp:~canonical-platform-qa/ubiquity/no-gtk-modules
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve on 2017-01-23
Dimitri John Ledkov 2016-12-16 Needs Fixing on 2016-12-17
Review via email: mp+313473@code.launchpad.net

Commit Message

Removed other references to deprecated GTK_MODULES

Description of the Change

This branch removes references to the GTK_MODULES environment variable which was recently removed.

To post a comment you must log in.
Dimitri John Ledkov (xnox) :
Dimitri John Ledkov (xnox) :
review: Needs Fixing
6502. By Max Brustkern on 2016-12-20

Adding GTK_MODULES to environment if it doesn't exist

Max Brustkern (nuclearbob) wrote :

Thanks for the feedback! Please let me know if this looks better.

Iain Lane (laney) wrote :

xnox, please re-review.

I just looked into this same bug, found the solution, then found this MP. It's now linked to the bug (which was filed later than the MP).

This bug breaks the try / install menu in maybe-ubiquity mode, so please upload. I made a couple of small comments that IMHO you could fix directly after merging if you want.

Mathieu Trudel-Lapierre (cyphermox) wrote :

There is still the extra character, but I'm happy with how the code is; I'll merge this.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/ubiquity-dm'
2--- bin/ubiquity-dm 2016-12-02 14:58:25 +0000
3+++ bin/ubiquity-dm 2016-12-20 20:04:42 +0000
4@@ -410,6 +410,7 @@
5 stdin=null, stdout=logfile, stderr=logfile,
6 preexec_fn=self.drop_privileges))
7
8+↓
9 # Accessibility infrastructure
10 proc_cmdline = []
11 with open('/proc/cmdline', 'r') as fp:
12@@ -547,7 +548,10 @@
13 [launcher, '--launch-immediately'],
14 stdin=null, stdout=logfile, stderr=logfile,
15 preexec_fn=self.drop_privileges))
16- os.environ['GTK_MODULES'] += os.pathsep + 'gail'
17+ if 'GTK_MODULES' in os.environ:
18+ os.environ['GTK_MODULES'] += os.pathsep + 'gail'
19+ else:
20+ os.environ['GTK_MODULES'] = 'gail'
21
22 if osextras.find_on_path('gnome-shell'):
23 wm_cmd = ['gnome-shell', '--sm-disable', '--mode=ubiquity']
24
25=== modified file 'bin/ubiquity-wrapper'
26--- bin/ubiquity-wrapper 2016-12-02 14:58:25 +0000
27+++ bin/ubiquity-wrapper 2016-12-20 20:04:42 +0000
28@@ -23,7 +23,10 @@
29 if not sys.argv[i].startswith('-'):
30 frontend = sys.argv[i]
31 elif sys.argv[i] == '--autopilot':
32- os.environ['GTK_MODULES'] += os.pathsep + 'autopilot'
33+ if 'GTK_MODULES' in os.environ:
34+ os.environ['GTK_MODULES'] += os.pathsep + 'autopilot'
35+ else:
36+ os.environ['GTK_MODULES'] = 'autopilot'
37 newargv.append(sys.argv[i])
38 i += 1
39

Subscribers

People subscribed via source and target branches

to status/vote changes: