blob: 1397028f6ca988efcc88d4393ef80c6282ed7f8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff --git /usr/lib/linuxmint/mintLocale/mintLocale.py /usr/lib/linuxmint/mintLocale/mintLocale.py
--- /usr/lib/linuxmint/mintLocale/mintLocale.py
+++ /usr/lib/linuxmint/mintLocale/mintLocale.py
This patch removes the options to Add/Remove Languages in Language Settings, as ArchLinux does not use apt (hence no apt_pkg option is available).
index 990e39b..89267b5 100755
@@ -14,7 +14,6 @@
import ConfigParser
import grp
import locale
- import apt
import tempfile
from subprocess import Popen
except Exception, detail:
@@ -396,7 +395,12 @@
self.accountService = AccountsService.UserManager.get_default().get_user(current_user)
self.accountService.connect('notify::is-loaded', self.accountservice_ready)
self.accountService.connect('changed::', self.accountservice_changed)
-
+
+ try:
+ import apt_pkg
+ except ImportError:
+ return
+
groups = grp.getgrall()
for group in groups:
(name, pw, gid, mem) = group
|