Bug 382090

Summary: Fall back to config in system location
Product: [Plasma] KScreen Reporter: David Kahles <david.kahles96>
Component: commonAssignee: Sebastian Kügler <sebas>
Status: RESOLVED FIXED    
Severity: wishlist CC: nate
Priority: NOR    
Version First Reported In: git   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=407112
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Quick-and-dirty patch

Description David Kahles 2017-07-07 09:36:43 UTC
Please load the monitor config on startup from readonly locations too, and not only from the users home directory.

Usecase: you have some workstations used by many different users. The workstations have multiple monitors and you want to configure them at a central place for all users. Otherwise every user needs configure them manually. Thus you could drop a monitor config to e.g. /usr/local/share/kscreen and the config will be picked up by the users kscreen if they login to the workstation for the first time.

We have exactly this situation at my university and use a patched kscreen to solve this problem. Unfortunately I think our patch doesn't address all edge cases, because KScreen:Serializer assumes to have a writeable config file location in many places, so it would be nice if someone with a deeper understanding of the code could implement it correctly.
Comment 1 Sebastian Kügler 2017-07-07 09:42:21 UTC
Sounds reasonable. Would you mind posting your patch, so I can have a look and get some inspiration from it?
Comment 2 David Kahles 2017-07-07 10:15:19 UTC
Created attachment 106485 [details]
Quick-and-dirty patch

As I said, it's done quick and dirty: I'm not sure whether it works in all cases.
Comment 3 Nate Graham 2022-11-08 18:45:13 UTC
This was implemented by David Redondo with https://invent.kde.org/plasma/kscreen/-/commit/8fbe7ceb1628839a4bb77a4a33c0f183b3d19047!