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

11
configs/ulauncher.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=Ulauncher
Comment=Application launcher for Linux
GenericName=Launcher
Categories=GNOME;GTK;Utility;
TryExec=/usr/bin/ulauncher
Exec=env GDK_BACKEND=x11 /usr/bin/ulauncher --hide-window --hide-window
Icon=ulauncher
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true

View File

@ -5,6 +5,8 @@ if ! command -v ulauncher &>/dev/null; then
sudo apt install -y ulauncher sudo apt install -y ulauncher
# Start ulauncher to have it populate config before we overwrite # 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 cp ~/.local/share/omakub/configs/ulauncher.json ~/.config/ulauncher/settings.json
fi fi