1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

Add (optional) firejail support

This commit is contained in:
Chris Josten 2021-02-17 02:28:37 +01:00
parent 8552e08a12
commit e4e35c03d4
6 changed files with 50 additions and 8 deletions

View file

@ -27,6 +27,9 @@ set(jellyfin-qt_HEADERS
include/JellyfinQt/serverdiscoverymodel.h)
add_definitions(-DSAILFIN_VERSION=\"${SAILFIN_VERSION}\")
if (PLATFORM_SAILFISHOS)
add_definitions(-DPLATFORM_SAILFISHOS=1)
endif()
add_library(jellyfin-qt ${jellyfin-qt_SOURCES} ${jellyfin-qt_HEADERS})
target_include_directories(jellyfin-qt
PUBLIC "include"

View file

@ -27,7 +27,13 @@ CredentialsManager * CredentialsManager::newInstance(QObject *parent) {
// FallbackCredentialsManager //
////////////////////////////////////////////////////////////////////////////////////////////////////
FallbackCredentialsManager::FallbackCredentialsManager(QObject *parent)
: CredentialsManager (parent) {
: CredentialsManager (parent)
#if PLATFORM_SAILFISHOS
// I'd rather not hardcoded this here, but I don´t know a better, quick solution.
// since this file must be placed in this path due to sandboxing.
, m_settings("nl.netsoj.chris/Sailfin/sailfin")
#endif
{
m_settings.beginGroup("Credentials");
}