Commit Graph

7 Commits

Author SHA1 Message Date
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