Commit Graph

12 Commits

Author SHA1 Message Date
fufesou 6df5c2c0ce feat: linux, get_home_trusted
Signed-off-by: fufesou <linlong1266@gmail.com>
2025-12-22 23:18:35 +08:00
fufesou 4f7cae670e fix: linux is_kde()
Signed-off-by: fufesou <linlong1266@gmail.com>
2025-11-17 10:25:30 +08:00
fufesou 4fe91763b7 fix: Wayland resolution
1. Add filed `scale` in `message SwitchDisplay`(`message.proto`).
2. Add new function to get all display info.
3. Add help link of KDE Plasma Wayland.

Signed-off-by: fufesou <linlong1266@gmail.com>
2025-11-12 23:16:04 +08:00
Jonathan Gilbert 345d37b8ff Changed the GLOBAL_CALLBACK code in src/platform/mod.rs back to a static reference and instead explicitly allowed static_mut_refs in this instance. 2025-11-01 16:34:11 -05:00
Jonathan Gilbert 95dd7e5c21 Updated breakdown_signal_handler in src/platform/mod.rs to obtain a raw pointer to GLOBAL_CALLBACK instead of a shared reference. 2025-11-01 16:25:25 -05:00
fufesou d9d872a8a7 fix: linux, dm user
Signed-off-by: fufesou <linlong1266@gmail.com>
2025-07-08 17:42:53 +08:00
fufesou bb1178384b fix: linux, workaround cmd path
Signed-off-by: fufesou <linlong1266@gmail.com>
2025-06-25 21:37:51 +08:00
fufesou 11dcd41415 fix: linux sh path
Signed-off-by: fufesou <linlong1266@gmail.com>
2025-06-25 17:18:41 +08:00
fufesou 04772abbef feat: linux, is locked
Signed-off-by: fufesou <linlong1266@gmail.com>
2025-04-24 14:00:53 +08:00
Tom Yan a27b28504d Ignore the session type when started as a user unit
If a user for reasons start the program as user unit (instead of
as a system unit or in a session), /proc/self/sessionid may result
in the inferred session type being "unspecified" and prevent
XDG_SESSION_TYPE from being leveraged (and its "x11" fallback).
2025-04-19 01:32:41 +08:00
Tom Yan 514ef6ac08 Ignore unspecified type session(s) when look through all active sessions
With modern systemd versions, there is a manager class session,
which is of type "unspecified", for each logged-in / lingering
user. Such session should be ignored when attempt to find an
appropriate session from all (non-seated) sessions, otherwise it
will prevent XDG_SESSION_TYPE (and its "x11" fallback) from being
leveraged.
2025-04-19 01:09:53 +08:00
21pages 49c6b24a7a init
Signed-off-by: 21pages <sunboeasy@gmail.com>
2025-01-20 16:06:27 +08:00