Commit graph

10 commits

Author SHA1 Message Date
Luis Büchi
90abaad9c8 envmanager: stop loading mobile config when desktop one should be 2025-10-28 03:21:13 +01:00
Devin Lin
09715da168 envmanager: Use config overlay for applications-blacklistrc
Use a config overlay for applications-blacklistrc, so that new options
that we add are updated in installs. This brings it inline with all of
the other config files we manage, and so I also remove unused
functionality that we used in the past to "save" and restore config
files.
2025-09-16 08:23:32 -04:00
Devin Lin
92a1cfc740 envmanager: Write options as immutable, and add kdeglobals
This commit writes options as immutable to the config file ([$i]
suffix), so that user defined options from desktop do not override our
specified mobile settings.

This commit also moves kdeglobals settings to be written to
~/.config/plasma-mobile/kdeglobals rather than directly to
~/.config/kdeglobals, continuing the work from
!723

Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/467
2025-06-13 07:16:18 -04:00
Devin Lin
0e6221ce52 envmanager: Add overlay configs through XDG_CONFIG_DIRS
We currently directly write our settings to ~/.config/kwinrc and ~/.config/ksmserver.

Instead, create a separate config file with our settings (in ~/.config/plasma-mobile), and in startplasmamobile, add that path to XDG_CONFIG_DIRS. These options will be applied in the mobile session, unless the user explicitly sets the config option.
2025-05-22 23:12:43 -04:00
Devin Lin
9c2e2c7db3 Revert "envmanager: Handle SSD toggling with kwin rules"
This reverts commit c45f9ed446.

The kwin rules setting causes all desktop windows to have window decorations. Revert this for now until we figure out a solution.
2025-04-24 11:28:49 +02:00
Devin Lin
c45f9ed446 envmanager: Handle SSD toggling with kwin rules
Replace the convergentwindows KWin script SSD toggling with KWin rules to ensure
windows are maximized and have no window border (and toggle off for
docked mode). KWin rules work immediately at window creation, which is
more efficient than listening to window creation events and manually
changing properties on them.

Currently, window rules setting maximization don't seem to address all cases where a window gets unmaximized, so for the time being we will still need the logic in convergentwindows to handle any sidecases.
2025-03-21 16:00:12 +00:00
Luis Büchi
d7ae1917af envmanager: disable session restore for mobile
session restore could lead to soft lock since dialer can open
on top of the login screen.
2024-12-20 22:32:29 +01:00
Carl Schwan
b070f6e3f7
Use a reference for the singleton
This is a bit nicer to work with than a pointer and doesn't require a
heap allocation.
2024-01-17 01:02:51 +01:00
Devin Lin
30c951473e envmanager: Ensure that it is not a graphical application 2023-03-29 22:43:44 -07:00
Devin Lin
3e1e1e7d22 envmanager: Extract kded settings management to separate app, add window decoration customization 2023-03-29 19:41:10 -07:00
Renamed from kded/settings.h (Browse further)