This is probably brain-dead simple for you guys, but it is proving a brick wall to my old brain. Courtesy of murga poster "Watchdog', he has a trick for getting the latest downloadable (from Google) Chrome to run as both "Spot" plus with "Sandboxing" fully employed.
Here's how things are structured at the moment:
1) In Slacko64-700 (6.9.9.9.)
2) have placed the latest, full Google Chrome64 in "Spot" directory
3) also placed palemoon64 in /opt/directory for use as a LIB_PATH when launching Chrome in Spot
4) in "spot" directory is also this simple script:
Code: Select all
# cat /root/spot/chrome.sh
#!/bin/sh
SPOT_HOME=$(awk -F: '$1=="spot" {print $6}' /etc/passwd)
cd $SPOT_HOME/Downloads
LD_LIBRARY_PATH=/mnt/sda1/palemoon_64:$LD_LIBRARY_PATH
exec ~/google/chrome/google-chrome --user-data-dir="$SPOT_HOME/.config/chrome" "$@"
Code: Select all
chown -R spot /root/spot
cd /root/spot
su spot
sh chrome.sh
....then Chrome starts up right away, as previously mentioned with both as "Spot' and "Sandbox" function fully employed.
My question is this: it's a pain in the butt to have to type those 4 commands in a terminal every time you want to launch Chrome. Is there a way to put all of those 4 commands in "one script", so that when that script is clicked, it will launch--perform those 4 commands---and thus Chrome will start right up???
Thank you for help/advice/tips/etc.