Skip to content

Commit

Permalink
Export dbus address for the notification server
Browse files Browse the repository at this point in the history
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
ben-grande committed May 30, 2024
1 parent 6246500 commit dbfb1fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion qubes-rpc/services/qvc.ScreenShare
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
# 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
DISPLAY=:0
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
export DISPLAY DBUS_SESSION_BUS_ADDRESS
exec python3 -- /usr/share/qubes-video-companion/sender/screenshare.py
4 changes: 3 additions & 1 deletion qubes-rpc/services/qvc.Webcam
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
# 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
DISPLAY=:0
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
export DISPLAY DBUS_SESSION_BUS_ADDRESS
exec python3 -- /usr/share/qubes-video-companion/sender/webcam.py ${1:+"$1"}

0 comments on commit dbfb1fa

Please sign in to comment.