diff --git a/lxterminal-0.1.7-fix-path.patch b/lxterminal-0.1.7-fix-path.patch new file mode 100644 index 0000000..b347aba --- /dev/null +++ b/lxterminal-0.1.7-fix-path.patch @@ -0,0 +1,11 @@ +--- a/src/lxterminal.c ++++ b/src/lxterminal.c +@@ -766,7 +766,7 @@ static Term *terminal_new(LXTerminal *te + if (exec) { + gchar **command; + g_shell_parse_argv(exec, NULL, &command, NULL); +- term->pid = vte_terminal_fork_command(VTE_TERMINAL(term->vte), (const char *)*(command), command, env, "/tmp", FALSE, TRUE, TRUE); ++ term->pid = vte_terminal_fork_command(VTE_TERMINAL(term->vte), (const char *)*(command), command, env, pwd, FALSE, TRUE, TRUE); + g_strfreev(command); + } else { + term->pid = vte_terminal_fork_command(VTE_TERMINAL(term->vte), NULL, NULL, env, pwd, FALSE, TRUE, TRUE); diff --git a/lxterminal.changes b/lxterminal.changes index 14b9709..8958750 100644 --- a/lxterminal.changes +++ b/lxterminal.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Mar 10 16:15:04 UTC 2010 - andrea@opensuse.org + +- added lxterminal-0.1.7-fix-path.patch now -e option will work + again with commands not in the $PATH, example: + lxterminal -e ./command + will work again now + ------------------------------------------------------------------- Mon Mar 1 23:46:09 UTC 2010 - andrea@opensuse.org diff --git a/lxterminal.spec b/lxterminal.spec index ce3d5ba..36d7c31 100644 --- a/lxterminal.spec +++ b/lxterminal.spec @@ -20,13 +20,14 @@ Name: lxterminal Version: 0.1.7 -Release: 1 +Release: 2 Summary: Lightweight LXDE Terminal Group: System/X11/Utilities License: GPL Url: http://www.lxde.org/ Source0: %name-%version.tar.bz2 Patch0: %name-0.1.6-disable-f10.patch +Patch1: %name-0.1.7-fix-path.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes gtk2-devel intltool pkg-config update-desktop-files BuildRequires: docbook-utils docbook-xsl-stylesheets libxslt-devel vte-devel @@ -39,6 +40,7 @@ of the LXDE project %prep %setup -q %patch0 -p1 +%patch1 -p1 %build export CFLAGS="$RPM_OPT_FLAGS"