winft / disman

Qt/C++ display management library
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Save control files in per-plugin directories #12

Open romangg opened 4 years ago

romangg commented 4 years ago

Proposal

Currently all control files are saved in the same directory which is normally: $HOME/.local/share/disman/control.

It could make sense to save the control files in per-plugin separate directories like:

Maybe it would even make sense to subdivide the Wayland directory further according to its plugins:

But at this point it seems rather random when for example compositors based on Wrapland (the kwinft directory) potentially override each others configs but not the ones of wlroots-based ones.

A different idea would to base the subdivision not on the the Wayland plugins but on XDG_SESSION_DESKTOP. For example:

Or directly:

Alternative

Keep all control files in one directory. Since X11 and Wayland in Disman support the same control files this would in theory allow seamless switching between the session types and different backend plugins when the hash values are computed in the same way, i.e. a certain "UUID" of outputs must be the same cross-backend.