Skip to content

Commit

Permalink
Fixed Linux install scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Aug 16, 2024
1 parent a7ae3dc commit 89b32ee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mrv2/etc/Linux/mrv2.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name=mrv2-64 v@mrv2_VERSION@
Comment=Professional Video and Flipbook player
Exec=/usr/local/mrv2-v@mrv2_VERSION@-Linux-64/bin/mrv2.sh %F
Icon=/usr/share/icons/hicolor/48x48/apps/mrv2-v@mrv2_VERSION@.png
Icon=/usr/share/icons/hicolor/256x256/apps/mrv2-v@mrv2_VERSION@.png
Categories=AudioVideo;Player;Video;Grapics;2DGraphics;RasterGraphics;FLTK;
Comment[en_US]=Professional Image Viewer, Video and Audio playback
MimeType=audio/opus;audio/x-mp3;audio/x-wav;video/x-theora+ogg;video/x-ogm+ogg;video/x-nsv;video/x-msvideo;video/x-ms-wmv;video/x-ms-wmp;video/x-ms-asf;video/x-mng;video/x-matroska;video/x-flv;video/x-flic;video/x-anim;video/webm;video/wavelet;video/vnd.rn-realvideo;video/vnd.mpegurl;video/vivo;video/quicktime;video/ogg;video/mpeg;video/mp4;video/mp2t;image/x-sgi;image/x-rgb;image/x-exr;image/tiff;image/png;image/jpeg;image/dpx;
Expand Down
2 changes: 1 addition & 1 deletion mrv2/etc/Linux/mrv2.main.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name=mrv2
Comment=Professional Video and Flipbook player
Exec=/usr/local/mrv2-v@mrv2_VERSION@-Linux-64/bin/mrv2.sh %F
Icon=/usr/share/icons/hicolor/48x48/apps/mrv2.png
Icon=/usr/share/icons/hicolor/256x256/apps/mrv2.png
Categories=AudioVideo;Player;Video;Grapics;2DGraphics;RasterGraphics;FLTK;
Comment[en_US]=Professional Image Viewer, Video and Audio playback
MimeType=audio/opus;audio/x-mp3;audio/x-wav;video/x-theora+ogg;video/x-ogm+ogg;video/x-nsv;video/x-msvideo;video/x-ms-wmv;video/x-ms-wmp;video/x-ms-asf;video/x-mng;video/x-matroska;video/x-flv;video/x-flic;video/x-anim;video/webm;video/wavelet;video/vnd.rn-realvideo;video/vnd.mpegurl;video/vivo;video/quicktime;video/ogg;video/mpeg;video/mp4;video/mp2t;image/x-sgi;image/x-rgb;image/x-exr;image/tiff;image/png;image/jpeg;image/dpx;
Expand Down
3 changes: 1 addition & 2 deletions mrv2/etc/Linux/postinst.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ ICON_SIZES='16 32 48 64 128 256'
for i in $ICON_SIZES; do
echo " Installing icon size ${i}x${i}"
cp ${sharedir}/icons/hicolor/${i}x${i}/apps/mrv2.png /usr/share/icons/hicolor/${i}x${i}/apps/mrv2-v@mrv2_VERSION@.png
cp ${sharedir}/icons/hicolor/${i}x${i}/apps/mrv2.png /usr/share/icons/hicolor/${i}x${i}/apps/mrv2.png
done

cp ${sharedir}/icons/hicolor/32x32/apps/mrv2.png /usr/share/icons/hicolor/32x32/apps/mrv2.png
cp ${sharedir}/icons/hicolor/48x48/apps/mrv2.png /usr/share/icons/hicolor/48x48/apps/mrv2.png

#
# Copy versioned shortcut to applications and desktop
Expand Down
16 changes: 12 additions & 4 deletions mrv2/etc/Linux/postrm.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Some constants
ICON_SIZES='16 32 48 64 128 256'

# Remove /usr/bin/mrv2 if it is a symlink to our version
removed=0
if [[ -L /usr/bin/mrv2 ]]; then
Expand Down Expand Up @@ -31,8 +34,14 @@ else
echo "No suitable version found to create a symbolic link."
echo "Removing /usr/share/applications/mrv2.desktop and mrv2.png"
rm -f /usr/share/applications/mrv2.desktop
rm -f /usr/share/icons/hicolor/48x48/apps/mrv2.png
rm -f /usr/share/icons/hicolor/32x32/apps/mrv2.png

#
# Remove all icon sizes
#
for i in $ICON_SIZES; do
icons_dir=${sharedir}/icons/hicolor/${i}x${i}/apps/
rm -f $icons_dir/mrv2.png
done
fi
fi

Expand All @@ -58,9 +67,8 @@ appdir=${sharedir}/applications
#
# Remove all icon sizes
#
ICON_SIZES='16 32 48 64 128 256'
for i in $ICON_SIZES; do
icons_dir=${shaderdir}/icons/hicolor/${i}x${i}/apps/
icons_dir=${sharedir}/icons/hicolor/${i}x${i}/apps/
rm $icons_dir/mrv2-v@mrv2_VERSION@.png
done

Expand Down

0 comments on commit 89b32ee

Please sign in to comment.