Commit de76980c authored by Simonas Leleiva's avatar Simonas Leleiva

[glacierui] add .desktop file

parent 14ca601b
[Desktop Entry]
Type=Application
Name=Glacier UI
Categories=Applications;
Exec=env QT_QUICK_CONTROLS_STYLE=Nemo /usr/lib/qt5/examples/touch_nemo
Icon=icon-app-components
X-Desktop-File-Install-Version=0.20
...@@ -27,3 +27,8 @@ RESOURCES += \ ...@@ -27,3 +27,8 @@ RESOURCES += \
resources.qrc resources.qrc
INSTALLS += target INSTALLS += target
desktop.path = /usr/share/applications
desktop.files = glacier-gallery.desktop
INSTALLS += desktop
...@@ -28,6 +28,7 @@ This package contains the Qt Quick Controls library ...@@ -28,6 +28,7 @@ This package contains the Qt Quick Controls library
%package examples %package examples
Summary: Examples to showcase Nemo UI components Summary: Examples to showcase Nemo UI components
Requires: qt5-qtquickcontrols-nemo Requires: qt5-qtquickcontrols-nemo
BuildRequires: desktop-file-utils
%description examples %description examples
%{summary}. %{summary}.
...@@ -48,6 +49,10 @@ make %{?_smp_flags} ...@@ -48,6 +49,10 @@ make %{?_smp_flags}
rm -rf %{buildroot} rm -rf %{buildroot}
%qmake5_install %qmake5_install
desktop-file-install --delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*.desktop
#### Pre/Post section #### Pre/Post section
%post %post
...@@ -65,3 +70,5 @@ rm -rf %{buildroot} ...@@ -65,3 +70,5 @@ rm -rf %{buildroot}
%files examples %files examples
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/qt5/examples/touch_nemo %{_libdir}/qt5/examples/touch_nemo
%{_datadir}/applications/*.desktop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment