[konsole] Failed to launch Konsole ... Failed to change $HOME and there is no such directory (#861504)

Rex Dieter rdieter at fedoraproject.org
Thu Oct 4 18:17:55 UTC 2012


commit df178c303d4baf98bdd51aa9973cd78585d54d31
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Thu Oct 4 13:18:12 2012 -0500

    Failed to launch Konsole ... Failed to change $HOME and there is no such directory (#861504)

 ...E-as-working-directory-through-the-.deskt.patch |   33 ++++++++++++++++++++
 konsole.spec                                       |   10 +++++-
 2 files changed, 42 insertions(+), 1 deletions(-)
---
diff --git a/0004-Specify-HOME-as-working-directory-through-the-.deskt.patch b/0004-Specify-HOME-as-working-directory-through-the-.deskt.patch
new file mode 100644
index 0000000..fdaa5cc
--- /dev/null
+++ b/0004-Specify-HOME-as-working-directory-through-the-.deskt.patch
@@ -0,0 +1,33 @@
+From a910778820408f293085073712b98a090dd3b28a Mon Sep 17 00:00:00 2001
+From: Jekyll Wu <adaptee at gmail.com>
+Date: Fri, 21 Sep 2012 18:46:28 +0800
+Subject: [PATCH 4/4] Specify $HOME as working directory through the .desktop
+ file
+
+This is just a workaround for the problem of opening "~/Documents" on startup.
+Although it is simple (just one line) and easy to understand, it is still a
+not-so-pleasant hack which doesn't need to be added at the first place.
+
+Note, the per-profile working directory still takes precedence if it is set
+
+CCBUG: 302903
+(cherry picked from commit 5f7b5eba568e8f4d311d9fba015e6f68478b3af6)
+---
+ desktop/konsole.desktop | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/desktop/konsole.desktop b/desktop/konsole.desktop
+index 020519c..4f5389c 100755
+--- a/desktop/konsole.desktop
++++ b/desktop/konsole.desktop
+@@ -5,6 +5,7 @@ TryExec=konsole
+ Icon=utilities-terminal
+ X-DocPath=konsole/index.html
+ Terminal=false
++Path=$HOME
+ X-KDE-StartupNotify=true
+ 
+ Name=Konsole
+-- 
+1.7.12
+
diff --git a/konsole.spec b/konsole.spec
index 3d97eff..90faf6f 100644
--- a/konsole.spec
+++ b/konsole.spec
@@ -1,7 +1,7 @@
 Name:    konsole
 Summary: KDE Terminal emulator
 Version: 4.9.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 # sources: MIT and LGPLv2 and LGPLv2+ and GPLv2+
 License: GPLv2 
@@ -14,6 +14,9 @@ URL:     http://konsole.kde.org/
 %endif 
 Source0: ftp://ftp.kde.org/pub/kde/%{stable}/%{version}/src/%{name}-%{version}.tar.xz
 
+# revert upstream commit setting Path=$HOME, it's non-portable
+Patch50: 0004-Specify-HOME-as-working-directory-through-the-.deskt.patch
+
 ## upstream patches
 
 BuildRequires: desktop-file-utils
@@ -41,6 +44,8 @@ Requires: kdelibs4%{?_isa}%{?_kde4_version: >= %{_kde4_version}}
 %prep
 %setup -q
 
+%patch50 -p1 -R -b .setPath
+
 
 %build
 mkdir -p %{_target_platform}
@@ -82,6 +87,9 @@ desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/konsole.des
 
 
 %changelog
+* Thu Oct 04 2012 Rex Dieter <rdieter at fedoraproject.org> 4.9.2-2
+- Failed to launch Konsole ... Failed to change $HOME and there is no such directory (#861504)
+
 * Sat Sep 29 2012 Rex Dieter <rdieter at fedoraproject.org> - 4.9.2-1
 - 4.9.2
 


More information about the scm-commits mailing list