From 3bb7a9857dd84204ef337c7624e91a3dbbdda34b Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Mon, 6 Jul 2015 18:48:25 +0200 Subject: Add a redshift desktop file (#158) This should fix the fact that redshift cannot query its location using geoclue 2 --- .gitignore | 1 + Makefile.am | 1 + contrib/redshift.spec | 1 + data/applications/redshift.desktop.in | 12 ++++++++++++ po/POTFILES.in | 1 + 5 files changed, 16 insertions(+) create mode 100755 data/applications/redshift.desktop.in 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 -- cgit v1.2.3-70-g09d2