Skip to content

Commit

Permalink
Set SESSION_MANAGER variable by parsing ~/.ICEauthority
Browse files Browse the repository at this point in the history
  • Loading branch information
l1n committed Sep 10, 2023
1 parent 9da4154 commit cb8f42d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions res/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ pactl load-module module-remap-source master=microphone.monitor source_name=micr
pactl set-source-volume 3 60%

echo -e "\nStart script.."
sleep 5

export SESSION_MANAGER=$(cat ~/.ICEauthority | perl -pe 's/.*(local.*?unix\/\d*).*/$1/'),$(cat ~/.ICEauthority | perl -pe 's/.*(local.*?unix\/\d*).*/$1/; s/local/unix/')

# Start python script in separated terminal
if [[ "$DEBUG" == "True" ]]; then
Expand All @@ -61,4 +62,4 @@ if [[ "$DEBUG" == "True" ]]; then
else
# Exit container if something failed
xfce4-terminal --geometry 85x7+0 --title=zoomrec --hide-toolbar --hide-menubar --hide-scrollbar --hide-borders --zoom=-3 -e "python3 -u ${HOME}/zoomrec.py"
fi
fi

0 comments on commit cb8f42d

Please sign in to comment.