1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-28 09:24:14 +01:00
This commit is contained in:
Ayush Shaw 2024-11-28 04:19:27 +01:00 committed by GitHub
commit 78c01a8356
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,6 +205,11 @@ simple_uninstall_f() {
# Update desktop file and mime databases (if possible)
updatedbs_f() {
if [ ! -f "${HOME}/root/.config/mimeapps.list" ]; then
touch mimeapps.list
chmod +x mimeapps.list
fi
if [ -d "${HOME}/.local/share/applications" ]; then
if command -v update-desktop-database > /dev/null; then
update-desktop-database "${HOME}/.local/share/applications"