fix break on non wayland
This commit is contained in:
parent
06b3421804
commit
a694944286
1 changed files with 8 additions and 1 deletions
|
@ -272,7 +272,14 @@
|
||||||
"--run"
|
"--run"
|
||||||
''[ ! -d "$XDG_RUNTIME_DIR" ] && mkdir -p "$XDG_RUNTIME_DIR"''
|
''[ ! -d "$XDG_RUNTIME_DIR" ] && mkdir -p "$XDG_RUNTIME_DIR"''
|
||||||
"--run"
|
"--run"
|
||||||
''[ ! -S "$XDG_RUNTIME_DIR/wayland-0" ] && ln -s /run/user/$(id -u)/wayland-0 "$XDG_RUNTIME_DIR/wayland-0"''
|
''
|
||||||
|
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||||
|
if [ ! -S "$XDG_RUNTIME_DIR/wayland-0" ]; then
|
||||||
|
mkdir -p "$XDG_RUNTIME_DIR"
|
||||||
|
ln -sf /run/user/$(id -u)/wayland-0 "$XDG_RUNTIME_DIR/wayland-0"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
''
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue