[viewmol] 02/06: Allow viewmol to launch from Gnome menus

Drew Parsons dparsons at alioth.debian.org
Sun Sep 22 02:35:27 UTC 2013


This is an automated email from the git hooks/post-receive script.

dparsons pushed a commit to branch debian-unstable
in repository viewmol.

commit e2a12701d0fa96b203c282f06bdac2d206cd4b65
Author: Drew Parsons <dparsons at debian.org>
Date:   Sat Sep 21 14:22:03 2013 +1000

    Allow viewmol to launch from Gnome menus
    
    Remove Path=$HOME from viewmol.desktop
    
    Gnome cannot handle environment variables ($HOME), and the app fails
    to launch from the Gnome menus, complaining "Failed to change to
    directory $HOME (No such file or directory)."
    
    cf. discussion at
    http://lists.freedesktop.org/pipermail/xdg/2013-January/012644.html
    
    Applied to patch 110_desktop_app.diff.
    
    Closes: #709304.
---
 debian/changelog                    |    4 ++++
 debian/patches/110_desktop_app.diff |   16 ++++++++++------
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index af63d94..7359ffb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,10 @@
 viewmol (2.4.1-20) UNRELEASED; urgency=low
 
   * Use dh_quilt_patch instead of the xsfbs scripts.
+  * Allow viewmol to launch from the Gnome menus: 
+    Remove Path=$HOME from viewmol.desktop, since Gnome cannot handle
+    environment variables ($HOME). Applied to patch 110_desktop_app.diff.
+    Closes: #709304.
 
  -- Drew Parsons <dparsons at debian.org>  Sat, 21 Sep 2013 13:20:52 +1000
 
diff --git a/debian/patches/110_desktop_app.diff b/debian/patches/110_desktop_app.diff
index bfe619b..7e28df4 100644
--- a/debian/patches/110_desktop_app.diff
+++ b/debian/patches/110_desktop_app.diff
@@ -1,5 +1,7 @@
---- viewmol-2.4.1.orig/kde/install
-+++ viewmol-2.4.1/kde/install
+Index: viewmol/kde/install
+===================================================================
+--- viewmol.orig/kde/install	2013-09-21 14:08:57.432936468 +1000
++++ viewmol/kde/install	2013-09-21 14:08:57.428936585 +1000
 @@ -1,6 +1,6 @@
  #!/bin/sh
  
@@ -63,9 +65,11 @@
 +#  /bin/cp mimelnk/magic /usr/local/lib/viewmol/kde/mimelnk
 +#fi
  echo " done."
---- viewmol-2.4.1.orig/kde/applications/viewmol.desktop
-+++ viewmol-2.4.1/kde/applications/viewmol.desktop
-@@ -6,8 +6,9 @@
+Index: viewmol/kde/applications/viewmol.desktop
+===================================================================
+--- viewmol.orig/kde/applications/viewmol.desktop	2013-09-21 14:08:57.432936468 +1000
++++ viewmol/kde/applications/viewmol.desktop	2013-09-21 14:18:36.718184554 +1000
+@@ -6,8 +6,8 @@
  MimeType=chemical/x-msi-car;chemical/x-dmol;chemical/x-mopac;chemical/x-gaussian-log;chemical/x-gulp;chemical/x-pdb;chemical/x-turbomole-control;chemical/x-turbomole-coord;
  Comment=Viewmol
  Type=Application
@@ -73,6 +77,6 @@
 +Exec=/usr/bin/viewmol %f
  Icon=viewmol.png
  MiniIcon=
- Path=$HOME
+-Path=$HOME
  Terminal=0
 +Categories=Education;Science;Chemistry;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/viewmol.git



More information about the debian-science-commits mailing list