Add SailJail, move overrides location

This commit is contained in:
Anton Thomasson 2021-12-01 20:30:43 +01:00
parent c00ddf0ed0
commit aa1dbea32c
2 changed files with 5 additions and 7 deletions

View file

@ -3,10 +3,9 @@ Type=Application
Icon=harbour-seaprint
X-Nemo-Application-Type=silica-qt5
Exec=harbour-seaprint
#Exec=/usr/bin/sailjail -p net.attah.seaprint.desktop /usr/bin/harbour-seaprint
Name=SeaPrint
#[X-Sailjail]
#Permissions=Internet;Pictures;Documents;Downloads;MediaIndexing
#OrganizationName=net.attah
#ApplicationName=seaprint
[X-Sailjail]
Permissions=Internet;Pictures;Documents;Downloads;MediaIndexing;Compatibility
OrganizationName=net.attah
ApplicationName=seaprint

View file

@ -5,8 +5,7 @@
Overrider::Overrider()
{
// QFile file(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)+"/overrides");
QFile file(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.seaprint_overrides");
QFile file(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)+"/overrides");
if(file.open(QIODevice::ReadOnly))
{
QJsonDocument JsonDocument = QJsonDocument::fromJson(file.readAll());