Merge lp:~townsend/libertine/unset_dconf into lp:libertine

Proposed by Christopher Townsend
Status: Merged
Approved by: Stephen M. Webb
Approved revision: 165
Merged at revision: 165
Proposed branch: lp:~townsend/libertine/unset_dconf
Merge into: lp:libertine
Diff against target: 15 lines (+5/-0)
1 file modified
python/libertine/ChrootContainer.py (+5/-0)
To merge this branch: bzr merge lp:~townsend/libertine/unset_dconf
Reviewer Review Type Date Requested Status
Stephen M. Webb (community) Approve
Libertine CI Bot continuous-integration Approve
Review via email: mp+284187@code.launchpad.net

Commit message

Workaround issue where a custom dconf profile is on a machine. Of course the profile is not in the chroot, so it messes up some applications.

To post a comment you must log in.
Revision history for this message
Libertine CI Bot (libertine-ci-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Stephen M. Webb (bregma) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'python/libertine/ChrootContainer.py'
2--- python/libertine/ChrootContainer.py 2016-01-14 14:46:43 +0000
3+++ python/libertine/ChrootContainer.py 2016-01-27 21:56:46 +0000
4@@ -197,6 +197,11 @@
5 # FIXME: Disabling seccomp is a temporary measure until we fully understand why we need
6 # it or figure out when we need it.
7 os.environ['PROOT_NO_SECCOMP'] = '1'
8+
9+ # Workaround issue where a custom dconf profile is on the machine
10+ if 'DCONF_PROFILE' in os.environ:
11+ del os.environ['DCONF_PROFILE']
12+
13 proot_cmd = self._build_proot_command()
14
15 args = shlex.split(proot_cmd)

Subscribers

People subscribed via source and target branches