Make startplasma more flexible so it can be leveraged by plasma mobile
ClosedPublic

Authored by apol on Dec 4 2019, 7:37 PM.

Details

Summary

Allows specifying the shell through an environment variable.
Allows forwarding command line arguments to kwin_wayland, since the arguments we
use on plasma phone are slightly different.

Test Plan

Builds, still starts

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.Dec 4 2019, 7:37 PM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 4 2019, 7:37 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
apol requested review of this revision.Dec 4 2019, 7:37 PM

Good to see more flexibility!

alexeymin added inline comments.Dec 4 2019, 7:57 PM
startkde/startplasma-wayland.cpp
91

having --xwayland always by default will unfortunately break my device port (xwayland crashes for me for some reason)

apol marked an inline comment as done.Dec 4 2019, 8:06 PM
apol added inline comments.
startkde/startplasma-wayland.cpp
91

This is not changing, --xwayland is already on by default. In fact it will be possible to change the defaults by passing some arguments to startplasma-wayland.

alexeymin added inline comments.Dec 4 2019, 8:21 PM
startkde/startplasma-wayland.cpp
91

Currently I can edit simple shell script (kwinwrapper) and remove the argument to kwin_wayland. If this is going to be hardcoded in the executable, it cannot be edited easily. I know I can work around (continue to use script). But despite the words "more flexible" in title, some flexibility in fact will be lost in the end (when using startplasma_wayland to start plasma-mobile session)

mart accepted this revision as: mart.Dec 4 2019, 8:31 PM
mart added a subscriber: mart.

+1 from me, would still like other opinions

This revision is now accepted and ready to land.Dec 4 2019, 8:31 PM
apol marked an inline comment as done.Dec 4 2019, 11:51 PM
apol added inline comments.
davidedmundson accepted this revision.Dec 5 2019, 12:34 AM
bshah added inline comments.Dec 5 2019, 6:36 AM
shell/main.cpp
93

I am bit unsure about this. We can simply write a configuration file in /etc/xdg using the plasma-phone-settings package.

bshah accepted this revision.Dec 5 2019, 6:43 AM
bshah added inline comments.
shell/main.cpp
93

On second thought, scratch all this.

alexeymin added inline comments.Dec 5 2019, 7:21 AM
startkde/startplasma-wayland.cpp
91

Indeed, I overlooked, probably lack of { } around for loop confused me..

broulik added a subscriber: broulik.Dec 5 2019, 8:45 AM
broulik added inline comments.
startkde/startplasma-wayland.cpp
88

Coding style, please.

apol marked an inline comment as done.Dec 5 2019, 12:34 PM
apol added inline comments.
shell/main.cpp
93

For completion, this was already doable as is.

This revision was automatically updated to reflect the committed changes.