23 lines
860 B
Diff
23 lines
860 B
Diff
--- nemo-terminal.orig/src/nemo_terminal.py
|
|
+++ nemo-terminal/src/nemo_terminal.py
|
|
@@ -50,7 +50,6 @@ gettext.textdomain('nemo-terminal')
|
|
_ = gettext.gettext
|
|
|
|
import gi
|
|
-gi.require_version('Vte', '2.90')
|
|
from gi.repository import GObject, Nemo, Gtk, Gdk, Vte, GLib, Gio
|
|
|
|
# DEFAULT_CONF = {
|
|
@@ -86,7 +85,10 @@ class NemoTerminal(object):
|
|
self.shell_pid = -1
|
|
self.term = Vte.Terminal()
|
|
|
|
- self.shell_pid = self.term.fork_command_full(Vte.PtyFlags.DEFAULT,
|
|
+ term_spawn_cmd = "fork_command_full"
|
|
+ if (hasattr(self.term, "spawn_sync")):
|
|
+ term_spawn_cmd = "spawn_sync"
|
|
+ self.shell_pid = getattr(self.term, term_spawn_cmd)(Vte.PtyFlags.DEFAULT,
|
|
self._path, [terminal_or_default()], None,
|
|
GLib.SpawnFlags.SEARCH_PATH, None, None)[1]
|
|
# Make vte.sh active
|