Skip to content

Commit

Permalink
[RTT-5714] Create a wrapper for gnome-kiosk
Browse files Browse the repository at this point in the history
so that gnome-kiosk is executed with --unsafe-mode,
which is needed in order to enable introspection API
  • Loading branch information
jikortus committed Jul 18, 2024
1 parent d53ab57 commit ed9760c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions anabot-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@

# Deploy non-git (in bundled directory) content in the installer environment
cp -r /opt/bundled-bin/$(uname -m)/* /

# Create a wrapper for gnome-kiosk to run it with introspection enabled
# (which means with '--unsafe-mode' parameter)
echo "Creating wrapper script for /bin/gnome-kiosk to run in unsafe mode"
mv /bin/gnome-kiosk /bin/gnome-kiosk_
cat > /bin/gnome-kiosk << EOF
#!/usr/bin/bash
/bin/gnome-kiosk_ "\$@" --unsafe-mode
EOF
chmod +x /bin/gnome-kiosk

0 comments on commit ed9760c

Please sign in to comment.