Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set SESSION_MANAGER variable by parsing ~/.ICEauthority #61

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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