summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xportato.py2
-rw-r--r--portato/gui/gtk/windows.py7
2 files changed, 4 insertions, 5 deletions
diff --git a/portato.py b/portato.py
index 7cca894..0c1498d 100755
--- a/portato.py
+++ b/portato.py
@@ -123,7 +123,7 @@ def main ():
env = os.environ.copy()
env.update(DBUS_SESSION_BUS_ADDRESS="")
cmd = SU_COMMAND.split()
- subprocess.Popen(cmd+["%s --no-listener --shm %ld %ld %ld %s" % (sys.argv[0], mem.key, sig.key, rw.key, " ".join(additional))], env = env, close_fds = False)
+ subprocess.Popen(cmd+["%s --no-listener --shm %ld %ld %ld %s" % (sys.argv[0], mem.key, sig.key, rw.key, " ".join(additional))], env = env)
get_listener().set_recv(mem, sig, rw)
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index b17c00c..476411d 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -25,7 +25,7 @@ from gettext import lgettext as _
# our backend stuff
from ... import get_listener, plugin
from ...helper import debug, warning, error, unique_array
-from ...constants import CONFIG_LOCATION, VERSION, APP_ICON, DATA_DIR
+from ...constants import CONFIG_LOCATION, VERSION, APP_ICON
from ...backend import flags, system
from ...backend.exceptions import PackageNotFoundException, BlockedException
@@ -383,11 +383,10 @@ class EbuildWindow (AbstractDialog):
"""Creates the buffer and the view."""
man = gtksourceview2.LanguageManager()
- man.set_search_path(man.get_search_path()+[DATA_DIR])
- language = man.get_language("ebuild")
+ language = man.get_language("gentoo")
if language is None:
- warning(_("No ebuild language file installed. Falling back to shell."))
+ warning(_("No gentoo language file installed. Falling back to shell."))
language = man.get_language("sh")
# set buffer and view