aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@bigon.be>2015-07-06 18:48:25 +0200
committerLaurent Bigonville <bigon@bigon.be>2015-07-07 01:06:55 +0200
commit3bb7a9857dd84204ef337c7624e91a3dbbdda34b (patch)
tree80296544966a7c3e58c94fd492139649e0970d59
parentMerge pull request #197 from forivall/clamp-fix (diff)
downloadredshift-ng-3bb7a9857dd84204ef337c7624e91a3dbbdda34b.tar.gz
redshift-ng-3bb7a9857dd84204ef337c7624e91a3dbbdda34b.tar.bz2
redshift-ng-3bb7a9857dd84204ef337c7624e91a3dbbdda34b.tar.xz
Add a redshift desktop file (#158)
This should fix the fact that redshift cannot query its location using geoclue 2
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am1
-rw-r--r--contrib/redshift.spec1
-rwxr-xr-xdata/applications/redshift.desktop.in12
-rw-r--r--po/POTFILES.in1
5 files changed, 16 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index d2776ba..76659d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -54,6 +54,7 @@ src/redshift-gtk/__pycache__/
/data/systemd/redshift.service
/data/systemd/redshift-gtk.service
/data/appdata/redshift-gtk.appdata.xml
+/data/applications/redshift.desktop
/data/applications/redshift-gtk.desktop
*.su
diff --git a/Makefile.am b/Makefile.am
index 0137635..a5f5eb4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,6 +28,7 @@ _UBUNTU_MONO_LIGHT_FILES = \
data/icons/ubuntu-mono-light/scalable/apps/redshift-status-off.svg
DESKTOP_IN_FILES = \
+ data/applications/redshift.desktop.in \
data/applications/redshift-gtk.desktop.in
SYSTEMD_USER_UNIT_IN_FILES = \
diff --git a/contrib/redshift.spec b/contrib/redshift.spec
index cfed640..cfb7af3 100644
--- a/contrib/redshift.spec
+++ b/contrib/redshift.spec
@@ -51,6 +51,7 @@ make %{?_smp_mflags} V=1
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install INSTALL="install -p"
%find_lang %{name}
+desktop-file-validate %{buildroot}%{_datadir}/applications/redshift.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/redshift-gtk.desktop
%post -n %{name}-gtk
diff --git a/data/applications/redshift.desktop.in b/data/applications/redshift.desktop.in
new file mode 100755
index 0000000..5511c24
--- /dev/null
+++ b/data/applications/redshift.desktop.in
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+_Name=Redshift
+_GenericName=Color temperature adjustment
+_Comment=Color temperature adjustment tool
+Exec=redshift
+Icon=redshift
+Terminal=false
+Type=Application
+Categories=Utility;
+StartupNotify=true
+Hidden=true
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ffaddb2..4241670 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,7 @@
# List of source files containing translatable strings
data/appdata/redshift-gtk.appdata.xml.in
+data/applications/redshift.desktop.in
data/applications/redshift-gtk.desktop.in
src/redshift.c