aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2015-11-21 18:58:55 +0100
committerMax Christian Pohle2015-11-21 18:58:55 +0100
commit5bf6cd920935500e16f0753e55c0a3593f7bd768 (patch)
tree03d3e49e0e7b830bbf1ae56ad395469694013b32
parentf67650f7e1d3c48e6fd123ac4c8537220d6ab053 (diff)
downloadqspacestatus-5bf6cd920935500e16f0753e55c0a3593f7bd768.tar.bz2
qspacestatus-5bf6cd920935500e16f0753e55c0a3593f7bd768.zip
added xdg menu entry
-rw-r--r--packages/arch/PKGBUILD6
-rw-r--r--qspaceapi.pro5
-rw-r--r--share/xdg/qspacestatus.desktop14
3 files changed, 22 insertions, 3 deletions
diff --git a/packages/arch/PKGBUILD b/packages/arch/PKGBUILD
index 552928c..c4d591a 100644
--- a/packages/arch/PKGBUILD
+++ b/packages/arch/PKGBUILD
@@ -23,7 +23,7 @@ makedepends=(git)
23# "$pkgname-$pkgver.patch") 23# "$pkgname-$pkgver.patch")
24source=("http://git.entwicklerseite.de/qspacestatus/snapshot/qspacestatus-master.tar.gz") 24source=("http://git.entwicklerseite.de/qspacestatus/snapshot/qspacestatus-master.tar.gz")
25noextract=() 25noextract=()
26md5sums=(aef78b78fe34adc704391d89f893b6ff) 26md5sums=(6ecd887bb6c1780254a0be543a37a55b)
27validpgpkeys=() 27validpgpkeys=()
28 28
29# prepare() { 29# prepare() {
@@ -48,5 +48,9 @@ build() {
48package() { 48package() {
49 # cd "$pkgname-$pkgver" 49 # cd "$pkgname-$pkgver"
50 cd qspacestatus-master/ 50 cd qspacestatus-master/
51 mkdir -p $pkgdir/usr/local/bin
52 install -m 755 -p qspacestatus $pkgdir/usr/local/bin
53 mkdir -p $pkgdir/usr/local/share/applications
54 install -m 755 -p share/xdg/qspacestatus.desktop $pkgdir/usr/local/share/applications
51 make DESTDIR="$pkgdir/" install 55 make DESTDIR="$pkgdir/" install
52} 56}
diff --git a/qspaceapi.pro b/qspaceapi.pro
index 117f34e..2cc1ade 100644
--- a/qspaceapi.pro
+++ b/qspaceapi.pro
@@ -12,7 +12,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
12TARGET = qspacestatus 12TARGET = qspacestatus
13TEMPLATE = app 13TEMPLATE = app
14 14
15target.path = /usr/local/bin/ 15target.path = bin/
16INSTALLS += target 16INSTALLS += target
17 17
18SOURCES += main.cpp\ 18SOURCES += main.cpp\
@@ -25,6 +25,7 @@ FORMS += mainwindow.ui
25DISTFILES += \ 25DISTFILES += \
26 folder.png \ 26 folder.png \
27 packages/arch/PKGBUILD \ 27 packages/arch/PKGBUILD \
28 packages/arch/Makefile 28 packages/arch/Makefile \
29 share/xdg/qspacestatus.desktop
29 30
30RESOURCES += 31RESOURCES +=
diff --git a/share/xdg/qspacestatus.desktop b/share/xdg/qspacestatus.desktop
new file mode 100644
index 0000000..243a08a
--- /dev/null
+++ b/share/xdg/qspacestatus.desktop
@@ -0,0 +1,14 @@
1#!/usr/bin/env xdg-open
2
3[Desktop Entry]
4Version=1.0
5Encoding=UTF-8
6Name=QSpaceStatus
7Type=Application
8Exec=qspacestatus
9Terminal=false
10Icon=None
11Comment=show the SpaceAPI status in the notification area
12Categories=Utility;
13Hidden=false
14X-GNOME-Autostart-enabled=true
..