monich / harbour-qrclip

QR Code Generator for Sailfish OS
https://openrepos.net/content/slava/qr-clip
Other
1 stars 5 forks source link

Sandbox support #10

Open ehdis opened 3 years ago

ehdis commented 3 years ago

Seems so far to work:

https://blog.jolla.com/whats-up-with-sandboxing/

--- harbour-qrclip.desktop
+++ /usr/share/applications/harbour-qrclip.desktop
@@ -1,7 +1,11 @@
 [Desktop Entry]
 Type=Application
 Name=QR Clip
-X-Nemo-Application-Type=silica-qt5
 Icon=harbour-qrclip
-Exec=harbour-qrclip
+Exec=sailjail -p harbour-qrclip.desktop /usr/bin/harbour-qrclip
 X-Desktop-File-Install-Version=0.20
+
+[X-Sailjail]
+Permissions=
+OrganizationName=monich
+ApplicationName=qrclip

Check out the "~/{.local/share,.config,.cache}/OrganizationName/ApplicationName/ " statement in the above blog post ...

monich commented 3 years ago

Why? The app seems to work in a sandbox as is.

Besides, what you've suggested would break the app on older systems which don't have this sailjail thing.