-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export dbus address for the notification server
Only screenshare script requires as of today, but put it in webcam also for future proof as it doesn't cause any harm. Assigning variable and declaration made separate due to ShellCheck warning SC2155. For: QubesOS/qubes-issues#6426 Fixes: QubesOS/qubes-issues#8457 Fixes: https://github.com/QubesOS/qubes-video-companion/issues/15
- Loading branch information
1 parent
6246500
commit 8898048
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/bin/sh -- | ||
|
||
# Copyright (C) 2021 Elliot Killick <[email protected]> | ||
# Copyright (C) 2021 Demi Marie Obenour <[email protected]> | ||
# Licensed under the MIT License. See LICENSE file for details. | ||
export DISPLAY=:0 | ||
set -eu | ||
XDG_RUNTIME_DIR="/run/user/$(id -u)" | ||
DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" | ||
export DISPLAY=:0 XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS | ||
exec python3 -- /usr/share/qubes-video-companion/sender/screenshare.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/bin/sh -- | ||
|
||
# Copyright (C) 2021 Elliot Killick <[email protected]> | ||
# Copyright (C) 2021 Demi Marie Obenour <[email protected]> | ||
# Licensed under the MIT License. See LICENSE file for details. | ||
export DISPLAY=:0 | ||
exec python3 -- /usr/share/qubes-video-companion/sender/webcam.py ${1:+"$1"} | ||
set -eu | ||
XDG_RUNTIME_DIR="/run/user/$(id -u)" | ||
DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" | ||
export DISPLAY=:0 XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS | ||
exec python3 -- /usr/share/qubes-video-companion/sender/webcam.py "${1:+"$1"}" |