Skip to content

Commit

Permalink
Install desktop menu item and icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo committed Apr 22, 2015
1 parent eef4885 commit 1d1c98c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src man themes

desktopdir = $(datadir)/applications
dist_desktop_DATA = xjump.desktop

icondir = $(datadir)/icons
dist_icon_DATA = xjump.png

install-exec-hook:
chgrp games @bindir@/xjump || true
chmod +s @bindir@/xjump || true
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ AM_LDFLAGS = -lXaw -lXt -lXpm -lX11

bin_PROGRAMS = xjump

xjump_SOURCES = game.c main.c misc.c record.c record.h resource.c xjump.h icon.xbm icon_msk.xbm xjump-icon.xpm
xjump_SOURCES = game.c main.c misc.c record.c record.h resource.c xjump.h icon.xbm icon_msk.xbm
8 changes: 4 additions & 4 deletions xjump.desktop
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=XJump
Comment=A jumping game
Comment=A jumping game for X
Comment[fr]=Un jeu de saut
Comment[pt]=Um jogo de pulo para o X
TryExec=xjump
Exec=xjump
Icon=xjump-icon.xpm
Categories=Application;Game;
Icon=xjump
Categories=Game;ArcadeGame;
Binary file added xjump.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d1c98c

Please sign in to comment.