pyPhotoAlbum/install_desktop_integration.sh
Duncan Tourolle ea4afadf54
All checks were successful
Python CI / test (push) Successful in 58s
Lint / lint (push) Successful in 1m3s
Tests / test (3.10) (push) Successful in 45s
Tests / test (3.11) (push) Successful in 41s
Tests / test (3.9) (push) Successful in 43s
adding application icon
2025-10-25 09:02:36 +02:00

26 lines
764 B
Bash
Executable File

#!/bin/bash
# Install desktop integration files for pyPhotoAlbum
# Create directories if they don't exist
mkdir -p ~/.local/share/applications
mkdir -p ~/.local/share/icons/hicolor/256x256/apps
# Copy desktop file
cp pyphotoalbum.desktop ~/.local/share/applications/
# Copy icon
cp pyPhotoAlbum/icons/icon.png ~/.local/share/icons/hicolor/256x256/apps/pyphotoalbum.png
# Update desktop database
if command -v update-desktop-database &> /dev/null; then
update-desktop-database ~/.local/share/applications
fi
# Update icon cache
if command -v gtk-update-icon-cache &> /dev/null; then
gtk-update-icon-cache ~/.local/share/icons/hicolor/
fi
echo "Desktop integration installed!"
echo "You may need to restart the application for changes to take effect."