Compare commits

...

1 commit

Author SHA1 Message Date
Anton Thomasson
6934d1e445 Add sailjail profile 2021-09-29 21:54:18 +02:00
4 changed files with 18 additions and 2 deletions

View file

@ -1,8 +1,8 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Icon=harbour-seaprint Icon=harbour-seaprint
Exec=harbour-seaprint Exec=/usr/bin/sailjail -p harbour-seaprint.desktop /usr/bin/harbour-seaprint
#Exec=/usr/bin/sailjail -p net.attah.seaprint.desktop /usr/bin/harbour-seaprint #Exec=/usr/bin/harbour-seaprint
Name=SeaPrint Name=SeaPrint
[X-Sailjail] [X-Sailjail]
Permissions=Internet;Pictures;Documents;Downloads;MediaIndexing Permissions=Internet;Pictures;Documents;Downloads;MediaIndexing

View file

@ -50,6 +50,7 @@ SOURCES += src/harbour-seaprint.cpp \
src/svgprovider.cpp src/svgprovider.cpp
DISTFILES += qml/harbour-seaprint.qml \ DISTFILES += qml/harbour-seaprint.qml \
harbour-seaprint.profile \
qml/components/DependentOn.qml \ qml/components/DependentOn.qml \
qml/cover/CoverPage.qml \ qml/cover/CoverPage.qml \
qml/components/*qml \ qml/components/*qml \
@ -63,6 +64,11 @@ DISTFILES += qml/harbour-seaprint.qml \
translations/*.ts \ translations/*.ts \
harbour-seaprint.desktop harbour-seaprint.desktop
sailjail.path = /etc/sailjail/permissions/
sailjail.files = harbour-seaprint.profile
INSTALLS += sailjail
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172 SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172
# to disable building translations every time, comment out the # to disable building translations every time, comment out the

9
harbour-seaprint.profile Normal file
View file

@ -0,0 +1,9 @@
# Firejail profile for /usr/bin/harbour-seaprint
# x-sailjail-translation-catalog =
# x-sailjail-translation-key-description =
# x-sailjail-description = Conversion utilities for documents
# x-sailjail-translation-key-long-description =
# x-sailjail-long-description =
private-bin pdftoppm,pdftops,pdftocairo,pdfinfo,calligraconverter

View file

@ -43,3 +43,4 @@ desktop-file-install --delete-original \
%{_datadir}/%{name} %{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/icons/hicolor/*/apps/%{name}.png
/etc/sailjail/permissions/%{name}.profile