[chmsee/f15] pass command line parameters do not hardcode libdir in desktop file

Yuan Yijun bbbush at fedoraproject.org
Sun Sep 25 14:11:20 UTC 2011


commit 6c581868067f65667c0d4b9e383aed43d927379e
Author: Yuan Yijun <bbbush.yuan at gmail.com>
Date:   Sun Sep 25 22:10:50 2011 +0800

    pass command line parameters
    do not hardcode libdir in desktop file

 chmsee.spec |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/chmsee.spec b/chmsee.spec
index c8ff365..2f2b7aa 100644
--- a/chmsee.spec
+++ b/chmsee.spec
@@ -4,7 +4,7 @@
 
 Name:		chmsee
 Version:	1.99
-Release:	0.3.%{alphatag}.%{checkout}%{?dist}
+Release:	0.4.%{alphatag}.%{checkout}%{?dist}
 Summary(zh_CN):	CHM 文件阅读工具, 基于 XULRunner
 Summary:	HTML Help viewer for Unix/Linux
 Group:		Applications/Publishing
@@ -67,12 +67,12 @@ case `uname -m` in
 		XUL_LIB_DIR="/usr/lib"
 		;;
 esac
-xulrunner $XUL_LIB_DIR/%{name}/application.ini
+exec xulrunner $XUL_LIB_DIR/%{name}/application.ini "$@"
 END
 cat > %{name}.desktop <<END
 [Desktop Entry]
 Name=Chmsee
-Exec=chmsee
+Exec=chmsee %f
 Terminal=false
 Type=Application
 StartupNotify=true
@@ -135,7 +135,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/icons/hicolor/*/mimetypes/chm.svg
 
 %changelog
-* Sun Sep 25 2011 bbbush <bbbush.yuan at gmail.com> - 1.99-0.3.5.git7fb12b8
+* Sun Sep 25 2011 bbbush <bbbush.yuan at gmail.com> - 1.99-0.4.5.git7fb12b8
+- pass command line parameters
 - do not hardcode libdir in desktop file
 
 * Wed Sep 21 2011 Ville Skyttä <ville.skytta at iki.fi> - 1.99-0.2.5.git7fb12b8


More information about the scm-commits mailing list