Bug 382090 - Fall back to config in system location
Summary: Fall back to config in system location
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (other bugs)
Version First Reported In: git
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-07 09:36 UTC by David Kahles
Modified: 2022-11-08 18:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Quick-and-dirty patch (865 bytes, patch)
2017-07-07 10:15 UTC, David Kahles
Details

Note You need to log in before you can comment on or make changes to this bug.
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!