Start ulauncher automatically and ensure defaults are populated before overwritten

This commit is contained in:
David Heinemeier Hansson
2024-05-31 15:36:02 -07:00
parent 4d62cea233
commit 14551e64f3
2 changed files with 14 additions and 1 deletions

View File

@ -5,6 +5,8 @@ if ! command -v ulauncher &>/dev/null; then
sudo apt install -y ulauncher
# Start ulauncher to have it populate config before we overwrite
ulauncher &
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