more control on what shell is loaded
AbandonedPublic

Authored by mart on Aug 8 2019, 9:11 AM.

Details

Reviewers
None
Group Reviewers
Plasma
Summary

Since shellManager was removed, we have a quite big regressions
of any other shell that isn't the desktop one not loading in any
way from SDDM, causing a big issue for plasma mobile or any shell
based on plasma mini shell, which we have several now not working
images based on.

This allows setting the plasma shell with an environment variable that
can be passed to startplasma (both wayland and x11) so we can have
dedicated session files for different shells

Test Plan

setting the env var makes plasma load the right shell, as adding the parameter to startplasma* in the session file

Diff Detail

Repository
R120 Plasma Workspace
Branch
phab/plasmashellenv
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 14879
Build 14897: arc lint + arc unit
mart created this revision.Aug 8 2019, 9:11 AM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 8 2019, 9:11 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart requested review of this revision.Aug 8 2019, 9:11 AM
mart edited the test plan for this revision. (Show Details)Aug 8 2019, 9:12 AM
mart added a reviewer: Plasma.
bshah added a subscriber: bshah.Aug 8 2019, 9:19 AM
bshah added inline comments.
shell/main.cpp
91

MAY I SUGGEST RENAMING TO kde_plasma_shellpackage?

bshah added inline comments.Aug 8 2019, 9:20 AM
shell/main.cpp
91

whoops sorry for caps.

mart updated this revision to Diff 63343.Aug 8 2019, 9:44 AM
  • KDE_PLASMA_SHELLPACKAGE
mart marked 2 inline comments as done.Aug 8 2019, 9:44 AM
apol added a subscriber: apol.Aug 8 2019, 10:19 AM

This will always have this environment variable set up, which could become a bit weird if we end up supporting changing shells, because we'd have a value in the environment variable but the shell in another.
How about passing it through a file?

shell/main.cpp
91

qEnvironmentVariable

if we end up supporting changing shells

We did, it got removed, because it wasn't used at all.

mart added a comment.Aug 8 2019, 1:10 PM

While i wouldn't mind for that feature to get back, using a temporary file wouldn't work, because as soon you have a crash and auto restart you get again on the default desktop shell.

to make the env var more clear, i would call it KDE_PLASMA_DEFAULT_SHELLPACKAGE
to say it's the default one, but not the really used one for sure

mart updated this revision to Diff 63357.Aug 8 2019, 1:12 PM
  • name it KDE_PLASMA_DEFAULT_SHELLPACKAGE
mart abandoned this revision.Aug 8 2019, 4:29 PM