Skip to content

Commit

Permalink
add desktop files
Browse files Browse the repository at this point in the history
fixes #2
  • Loading branch information
ncopa committed Sep 3, 2015
1 parent d3f76b2 commit 9964988
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SUBDIRS = src
SUBDIRS = src data
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ AC_INIT([xfce-bluetooth], [0.1])
AM_INIT_AUTOMAKE
AC_PROG_CC
AM_PROG_VALAC
AC_PROG_SED

PKG_CHECK_MODULES([GLIB], [glib-2.0])
PKG_CHECK_MODULES([GIO], [gio-2.0])
Expand All @@ -11,6 +12,7 @@ PKG_CHECK_MODULES([LIBXFCE4UI], [libxfce4ui-1])
AC_CONFIG_FILES([
Makefile
src/Makefile
data/Makefile
])

AC_OUTPUT
11 changes: 11 additions & 0 deletions data/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

desktopdir = $(datadir)/applications
desktop_in_files = xfce4-bluetooth.desktop.in xfce4-bluetooth-agent.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

%.desktop: %.desktop.in
$(SED) -e 's,@@xfce4bluetooth_execdir@@,$(libexecdir),' $< > $@

EXTRA_DIST = $(desktop_in_files)

CLEANFILES = $(desktop_DATA)
10 changes: 10 additions & 0 deletions data/xfce4-bluetooth-agent.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Name=Xfce Bluetooth
Comment=The Xfce Bluetooth Agent
Exec=@@xfce4bluetooth_execdir@@/xfce-bluetooth-agent
Icon=bluetooth
Terminal=false
Type=Application
StartupNotify=false
OnlyShowIn=XFCE;
16 changes: 16 additions & 0 deletions data/xfce4-bluetooth.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Desktop Entry]
Version=1.0
Name=Bluetooth preferences
GenericName=Bluetooth preferences
Comment=Settings for the Xfce Bluetooth Manager
Exec=@@xfce4bluetooth_execdir@@/xfce4-bluetooth
Icon=bluetooth
Terminal=false
Type=Application
Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;
OnlyShowIn=XFCE;
StartupNotify=true
X-XfcePluggable=true
X-XfceHelpComponent=xfce-bluetooth
X-XfceHelpPage=start

0 comments on commit 9964988

Please sign in to comment.