Scripts version 2255

This commit is contained in:
Mikhail Tergoev
2024-02-12 00:53:22 +03:00
parent f0e4c82ba9
commit 73edeb4b3c
13 changed files with 76 additions and 36 deletions

View File

@ -32,10 +32,14 @@ else
chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop"
fi
if [[ ! -f /usr/bin/portproton ]]; then
if [[ ! -f /usr/bin/portproton ]] ; then
cp -f "${PORT_WINE_PATH}/${name_desktop}.desktop" ${HOME}/.local/share/applications/
fi
if grep "SteamOS" "/etc/os-release" &>/dev/null ; then
cp -f "${PORT_WINE_PATH}/${name_desktop}.desktop" "$(xdg-user-dir DESKTOP)"
fi
update-desktop-database -q "${HOME}/.local/share/applications"
if ! grep -i "flatpak" /etc/os-release &>/dev/null ; then