21 lines
574 B
Diff
21 lines
574 B
Diff
|
---
|
||
|
src/udisksdaemonutil.c | 7 ++++++-
|
||
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
||
|
|
||
|
--- a/src/udisksdaemonutil.c
|
||
|
+++ b/src/udisksdaemonutil.c
|
||
|
@@ -899,7 +899,12 @@ udisks_daemon_util_on_same_seat (UDisksD
|
||
|
|
||
|
/* If we don't know the seat of the caller, we assume the device is always on another seat */
|
||
|
if (seat == NULL)
|
||
|
- goto out;
|
||
|
+ {
|
||
|
+ /* no systemd running? */
|
||
|
+ if (access("/sys/fs/cgroup/systemd", R_OK))
|
||
|
+ ret = TRUE;
|
||
|
+ goto out;
|
||
|
+ }
|
||
|
|
||
|
drive_seat = udisks_drive_get_seat (drive);
|
||
|
if (g_strcmp0 (seat, drive_seat) == 0)
|