sunhat/install/zzz-ulauncher.sh
David Heinemeier Hansson ac04b728b0 Fix ordering issue
2024-06-03 16:58:12 -07:00

14 lines
568 B
Bash

if [ -n "$FORCE" ] || ! command -v ulauncher &>/dev/null; then
sudo add-apt-repository universe -y
sudo add-apt-repository ppa:agornostal/ulauncher -y
sudo apt update -y
sudo apt install -y ulauncher
# Start ulauncher to have it populate config before we overwrite
mkdir -p ~/.config/autostart/
cp ~/.local/share/omakub/configs/ulauncher.desktop ~/.config/autostart/ulauncher.desktop
gtk-launch ulauncher.desktop
sleep 2 # ensure enough time for ulauncher to set defaults
cp ~/.local/share/omakub/configs/ulauncher.json ~/.config/ulauncher/settings.json
fi