Merge lp:~brandontschaefer/libertine/seed-packages-workaround into lp:libertine

Proposed by Brandon Schaefer on 2016-06-14
Status: Merged
Approved by: Christopher Townsend on 2016-06-15
Approved revision: 246
Merged at revision: 245
Proposed branch: lp:~brandontschaefer/libertine/seed-packages-workaround
Merge into: lp:libertine
Diff against target: 55 lines (+10/-4)
3 files modified
python/libertine/ChrootContainer.py (+1/-1)
python/libertine/Libertine.py (+4/-1)
python/libertine/utils.py (+5/-2)
To merge this branch: bzr merge lp:~brandontschaefer/libertine/seed-packages-workaround
Reviewer Review Type Date Requested Status
Christopher Townsend 2016-06-14 Approve on 2016-06-15
Libertine CI Bot continuous-integration Approve on 2016-06-14
Review via email: mp+297393@code.launchpad.net

Commit Message

https://bugs.launchpad.net/libertine/+bug/1592549

Work around for this bug. Only needed for chroot, since utils.py doesnt know the container type a bool seemed easier for now.

As well as seeding packages needed to get the OSK actually working!

Description of the Change

https://bugs.launchpad.net/libertine/+bug/1592549

Work around for this bug. Only needed for chroot, since utils.py doesnt know the container type a bool seemed easier for now.

As well as seeding packages needed to get the OSK actually working!

To post a comment you must log in.

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-06-07 19:05:09 +0000
3+++ python/libertine/ChrootContainer.py 2016-06-14 20:25:19 +0000
4@@ -250,7 +250,7 @@
5 proot_cmd = self._build_proot_command()
6
7 args = shlex.split(proot_cmd)
8- args.extend(utils.setup_window_manager(self.container_id))
9+ args.extend(utils.setup_window_manager(self.container_id), enable_toolbars=True)
10 window_manager = psutil.Popen(args)
11
12 args = shlex.split(proot_cmd)
13
14=== modified file 'python/libertine/Libertine.py'
15--- python/libertine/Libertine.py 2016-06-07 19:05:09 +0000
16+++ python/libertine/Libertine.py 2016-06-14 20:25:19 +0000
17@@ -80,7 +80,10 @@
18 self.default_packages = ['matchbox',
19 'libnss-extrausers',
20 'software-properties-common',
21- 'humanity-icon-theme']
22+ 'humanity-icon-theme',
23+ 'maliit-inputcontext-gtk2',
24+ 'maliit-inputcontext-gtk3',
25+ 'maliit-framework']
26
27 def create_libertine_container(self, password=None, multiarch=False, verbosity=1):
28 pass
29
30=== modified file 'python/libertine/utils.py'
31--- python/libertine/utils.py 2016-05-20 14:37:56 +0000
32+++ python/libertine/utils.py 2016-06-14 20:25:19 +0000
33@@ -29,7 +29,7 @@
34
35 def container_exists(container_id):
36 container_config_file_path = get_libertine_database_file_path()
37-
38+
39 if (os.path.exists(container_config_file_path) and
40 os.path.getsize(container_config_file_path) != 0):
41 with open(get_libertine_database_file_path()) as fd:
42@@ -132,9 +132,12 @@
43 return os.path.join(get_libertine_runtime_dir(), 'pulse_socket')
44
45
46-def setup_window_manager(container_id):
47+def setup_window_manager(container_id, enable_toolbars=False):
48 if os.path.exists(os.path.join(get_libertine_container_rootfs_path(container_id),
49 'usr', 'bin', 'matchbox-window-manager')):
50+ if enable_toolbars:
51+ return ['matchbox-window-manager']
52+
53 return ['matchbox-window-manager', '-use_titlebar', 'no']
54 else:
55 return ['compiz']

Subscribers

People subscribed via source and target branches