26 lines
764 B
Bash
Executable File
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."
|