Start ulauncher automatically and ensure defaults are populated before overwritten
This commit is contained in:
parent
4d62cea233
commit
14551e64f3
11
configs/ulauncher.desktop
Normal file
11
configs/ulauncher.desktop
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user