Improve GNOME desktop integration. Bug #342936

Patch supplied by Stanislav Brabec <sbrabec@suse.cz>.
 


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14251 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-05-29 22:07:10 +00:00
parent c23bf4c67a
commit d564f8b254
5 changed files with 8 additions and 26 deletions

View File

@ -94,9 +94,6 @@ gnomeapp_DATA = $(gnomeapp_in_files:.desktop.in=.desktop)
appicondir = $(datadir)/pixmaps
mimedir = $(datadir)/mime-info
mime_DATA = gnucash.keys gnucash.mime
noinst_HEADERS = \
dialog-chart-export.h \
dialog-fincalc.h \
@ -129,8 +126,6 @@ noinst_HEADERS = \
EXTRA_DIST = \
gnucash.desktop.in \
gnucash.keys.in \
gnucash.mime \
${gwmod_DATA}
@ -166,17 +161,6 @@ AM_CFLAGS = \
# The line below breaks automake 1.5.
##OMIT_DEPENDENCIES = gnc-dir.h
## We borrow guile's convention and use @-...-@ as the substitution
## brackets here, instead of the usual @...@. This prevents autoconf
## from substituting the values directly into the left-hand sides of
## the sed substitutions.
gnucash.keys: gnucash.keys.in ${top_builddir}/config.status Makefile
rm -f $@.tmp
sed < $< > $@.tmp \
-e 's:@-icondir-@:${appicondir}:g'
chmod +x $@.tmp
mv $@.tmp $@
noinst_DATA = .scm-links
if GNUCASH_SEPARATE_BUILDDIR
@ -206,5 +190,5 @@ gw-gnc.scm gw-gnc.h gw-gnc.c gw-gnc.html: \
(primitive-load \"./gw-gnc-spec.scm\") \
(gw:generate-wrapset \"gw-gnc\")"
BUILT_SOURCES = gw-gnc.scm gw-gnc.h gw-gnc.c
CLEANFILES = gnucash.keys gnucash.desktop gnucash g-wrapped .scm-links
CLEANFILES = gnucash.desktop gnucash g-wrapped .scm-links
DISTCLEANFILES = ${SCM_FILE_LINKS} gw-gnc.html

View File

@ -1,10 +1,11 @@
[Desktop Entry]
_Name=GnuCash Finance Management
_Comment=Manage your finances, accounts, and investments
Exec=gnucash
Icon=gnucash/gnucash-icon.png
Exec=gnucash %f
Icon=gnucash-icon
StartupNotify=true
Terminal=false
Type=Application
Categories=Application;Office;Finance;
X-Desktop-File-Install-Version=0.3
MimeType=application/x-gnucash

View File

@ -1,3 +0,0 @@
application/x-gnucash:
open=gnucash %f
view=gnucash %f

View File

@ -1,2 +0,0 @@
application/x-gnucash
ext: xac gnc gnucash

View File

@ -28,10 +28,12 @@ gncpixmap_DATA = \
gnc-sx-new.png \
gnc-transfer-16.png \
gnc-transfer.png \
gnucash-icon.png \
gnucash_splash.png \
stock_split_title.png \
stock_split_watermark.png
gncicondir = ${datadir}/pixmaps
gncicon_DATA = gnucash-icon.png
EXTRA_DIST = \
${gncpixmap_DATA}
${gncpixmap_DATA} ${gncicon_DATA}