pika-welcome/data/scripts/software-manager.sh

10 lines
280 B
Bash
Raw Normal View History

2024-02-24 21:00:00 +01:00
#!/bin/bash
if echo $XDG_SESSION_DESKTOP | grep -i -E 'gnome|pika|ubuntu'
then
gnome-software "$@"
elif echo $XDG_SESSION_DESKTOP | grep -i -E 'plasma|kde'
then
plasma-discover "$@"
else
zenity --error --text "$XDG_SESSION_DESKTOP does have a registered software-manager"
fi