]> git.lyx.org Git - lyx.git/commitdiff
Add desktop file to tarball and let it install into proper directory.
authorPavel Sanda <sanda@lyx.org>
Mon, 5 Dec 2011 23:06:36 +0000 (23:06 +0000)
committerPavel Sanda <sanda@lyx.org>
Mon, 5 Dec 2011 23:06:36 +0000 (23:06 +0000)
Bug #2820, thanks Timo Kluck for pointers.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40386 a592a061-630c-0410-9148-cb99ea01b6c8

Makefile.am
lib/lyx.desktop [new file with mode: 0644]

index 0e719fb53a15a7106dc463a895ac2bf0647bd103..ae61306a977da7b07ba2149d010860aed47a9ae0 100644 (file)
@@ -21,10 +21,18 @@ SUBDIRS = config development intl po $(BOOST) src sourcedoc lib \
 
 EXTRA_DIST = ANNOUNCE INSTALL.autoconf RELEASE-NOTES UPGRADING \
        INSTALL.Win32 INSTALL.MacOSX INSTALL.scons INSTALL.cmake \
-       README.Win32 README.Cygwin README.localization lyx.1in autogen.sh
+       README.Win32 README.Cygwin README.localization lyx.1in \
+       autogen.sh lib/lyx.desktop
 
 man_MANS = lyx.1
 
+if !INSTALL_WINDOWS
+if !INSTALL_MACOSX
+desktopdir = $(datadir)/applications
+desktop_DATA = lib/lyx.desktop
+endif
+endif
+
 #Wait some time for bumping automake 1.11, which can use dist-xz
 #directly without this code, which is to be removed.
 #xz has low compression by default, but can be affected via
diff --git a/lib/lyx.desktop b/lib/lyx.desktop
new file mode 100644 (file)
index 0000000..53f3c30
--- /dev/null
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=LyX
+GenericName=Document Processor
+Comment=High level LaTeX frontend
+Exec=lyx %F
+TryExec=lyx
+Icon=lyx
+StartupNotify=false
+StartupWMClass=Lyx
+Terminal=false
+Categories=Office;WordProcessor;Qt;
+MimeType=text/x-lyx;application/x-lyx;