Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
Install a Freedesktop-compliant desktop file
Browse files Browse the repository at this point in the history
This makes it possible for desktop environment (GNOME, KDE, XFCE, LXDE, E17,
and so on) display an icon for dwt. Also, the icon enables to use startup
notification (GTK+ provides built-in support for this).
  • Loading branch information
aperezdc committed Feb 20, 2013
1 parent 64bc722 commit 31070e0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -13,7 +13,7 @@ PKG_MODULES := vte-2.90
PKG_CFLAGS := $(shell pkg-config --cflags $(PKG_MODULES))
PKG_LDLIBS := $(shell pkg-config --libs $(PKG_MODULES))

all: dwt dwt.1
all: dwt dwt.1 dwt.desktop

dwt: CFLAGS += $(PKG_CFLAGS)
dwt: LDLIBS += $(PKG_LDLIBS)
Expand All @@ -33,6 +33,8 @@ install: all
install -m 755 -t $(DESTDIR)$(PREFIX)/bin dwt
install -m 755 -d $(DESTDIR)$(PREFIX)/man/man1
install -m 644 -t $(DESTDIR)$(PREFIX)/man/man1 dwt.1
install -m 755 -d $(DESTDIR)$(PREFIX)/share/applications
install -m 644 -t $(DESTDIR)$(PREFIX)/share/applications dwt.desktop

ifeq ($(origin TAG),command line)
VERSION := $(TAG)
Expand Down
13 changes: 13 additions & 0 deletions dwt.desktop
@@ -0,0 +1,13 @@
[Desktop Entry]
Hidden=false
Name=dwt
Exec=dwt
TryExec=dwt
Icon=terminal
Comment=Use the command line
Type=Application
NoDisplay=false
StartupNotify=true
StartupWMClass=Dwt
Categories=GNOME;GTK;Utility;TerminalEmulator;
Terminal=false

0 comments on commit 31070e0

Please sign in to comment.