mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
bin: Ensure that plasma-mobile-envmanager is run prior to shell start
This commit is contained in:
parent
f3e1738122
commit
630a85cbcb
3 changed files with 10 additions and 7 deletions
|
|
@ -23,6 +23,9 @@ then
|
||||||
export KDE_COREDUMP_NOTIFY=1
|
export KDE_COREDUMP_NOTIFY=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO port away from PLASMA_DEFAULT_SHELL into QT_QPA_PLATFORM=offscreen plasma-apply-lookandfeel --apply org.kde.plasma.phone
|
# ensure that we have our environment settings set properly prior to the shell being loaded (otherwise there is a race condition with autostart)
|
||||||
|
QT_QPA_PLATFORM=offscreen plasma-mobile-envmanager --apply-settings
|
||||||
|
|
||||||
|
# start the shell
|
||||||
export PLASMA_DEFAULT_SHELL=org.kde.plasma.mobileshell
|
export PLASMA_DEFAULT_SHELL=org.kde.plasma.mobileshell
|
||||||
startplasma-wayland --xwayland --inputmethod maliit-keyboard
|
startplasma-wayland --xwayland --inputmethod maliit-keyboard
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
// applications-blacklistrc
|
// applications-blacklistrc
|
||||||
// NOTE: we only write these entries if they are not already defined in the config
|
// NOTE: we only write these entries if they are not already defined in the config
|
||||||
const QMap<QString, QMap<QString, QVariant>> APPLICATIONS_BLACKLIST_SETTINGS = {
|
const QMap<QString, QMap<QString, QVariant>> APPLICATIONS_BLACKLIST_DEFAULT_SETTINGS = {
|
||||||
{"Applications",
|
{"Applications",
|
||||||
{{"blacklist",
|
{{"blacklist",
|
||||||
"cuttlefish,org.kde.plasma.themeexplorer,org.kde.klipper,ciborium,syncmonitorhelper,org.kde.okular,wordview,assistant,assistant-qt5,designer,designer-"
|
"cuttlefish,org.kde.plasma.themeexplorer,org.kde.klipper,ciborium,syncmonitorhelper,org.kde.okular,wordview,assistant,assistant-qt5,designer,designer-"
|
||||||
|
|
@ -23,7 +23,7 @@ const QMap<QString, QMap<QString, QVariant>> APPLICATIONS_BLACKLIST_SETTINGS = {
|
||||||
|
|
||||||
// kdeglobals
|
// kdeglobals
|
||||||
// NOTE: we only write these entries if they are not already defined in the config
|
// NOTE: we only write these entries if they are not already defined in the config
|
||||||
const QMap<QString, QMap<QString, QVariant>> KDEGLOBALS_SETTINGS = {{"General", {{"BrowserApplication", "angelfish"}}}};
|
const QMap<QString, QMap<QString, QVariant>> KDEGLOBALS_DEFAULT_SETTINGS = {{"General", {{"BrowserApplication", "angelfish"}}}};
|
||||||
|
|
||||||
// kwinrc
|
// kwinrc
|
||||||
QMap<QString, QMap<QString, QVariant>> getKwinrcSettings(KSharedConfig::Ptr m_mobileConfig)
|
QMap<QString, QMap<QString, QVariant>> getKwinrcSettings(KSharedConfig::Ptr m_mobileConfig)
|
||||||
|
|
|
||||||
|
|
@ -61,11 +61,11 @@ void Settings::loadSavedConfiguration()
|
||||||
reloadKWinConfig();
|
reloadKWinConfig();
|
||||||
|
|
||||||
// applications-blacklistrc
|
// applications-blacklistrc
|
||||||
loadKeys(QStringLiteral("applications-blacklistrc"), m_appBlacklistConfig, APPLICATIONS_BLACKLIST_SETTINGS);
|
loadKeys(QStringLiteral("applications-blacklistrc"), m_appBlacklistConfig, APPLICATIONS_BLACKLIST_DEFAULT_SETTINGS);
|
||||||
m_appBlacklistConfig->sync();
|
m_appBlacklistConfig->sync();
|
||||||
|
|
||||||
// kdeglobals
|
// kdeglobals
|
||||||
loadKeys(QStringLiteral("kdeglobals"), m_kdeglobalsConfig, KDEGLOBALS_SETTINGS);
|
loadKeys(QStringLiteral("kdeglobals"), m_kdeglobalsConfig, KDEGLOBALS_DEFAULT_SETTINGS);
|
||||||
m_kdeglobalsConfig->sync();
|
m_kdeglobalsConfig->sync();
|
||||||
|
|
||||||
// save our changes
|
// save our changes
|
||||||
|
|
@ -92,12 +92,12 @@ void Settings::applyMobileConfiguration()
|
||||||
|
|
||||||
// applications-blacklistrc
|
// applications-blacklistrc
|
||||||
// NOTE: we only write entries if they are not already defined in the config
|
// NOTE: we only write entries if they are not already defined in the config
|
||||||
writeKeys(QStringLiteral("applications-blacklistrc"), m_appBlacklistConfig, APPLICATIONS_BLACKLIST_SETTINGS, true);
|
writeKeys(QStringLiteral("applications-blacklistrc"), m_appBlacklistConfig, APPLICATIONS_BLACKLIST_DEFAULT_SETTINGS, true);
|
||||||
m_appBlacklistConfig->sync();
|
m_appBlacklistConfig->sync();
|
||||||
|
|
||||||
// kdeglobals
|
// kdeglobals
|
||||||
// NOTE: we only write entries if they are not already defined in the config
|
// NOTE: we only write entries if they are not already defined in the config
|
||||||
writeKeys(QStringLiteral("kdeglobals"), m_kdeglobalsConfig, KDEGLOBALS_SETTINGS, true);
|
writeKeys(QStringLiteral("kdeglobals"), m_kdeglobalsConfig, KDEGLOBALS_DEFAULT_SETTINGS, true);
|
||||||
m_kdeglobalsConfig->sync();
|
m_kdeglobalsConfig->sync();
|
||||||
|
|
||||||
// save our changes
|
// save our changes
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue