Commit 3fb19e73 authored by Rafaël Carré's avatar Rafaël Carré

Adds 2 scripts to make vlc the default audio/video mime-type handler on...

Adds 2 scripts to make vlc the default audio/video mime-type handler on freedesktop, contributed by forum user.
parent 1f074202
#!/bin/sh
# $Id $
#
# Copyright © 2007 VideoLAN team
#
# Authors: http://forum.videolan.org/viewtopic.php?f=13&t=40560
# Rafaël Carré <funman@videolanorg>
#
# Sets VLC media player the default application for audio mime types
# on a freedesktop compliant desktop
#
MIME_FILE=~/.local/share/applications/defaults.list
if [ ! -f $MIME_FILE ]
then echo "[Default Applications]" > $MIME_FILE
else grep -v 'audio/' $MIME_FILE > /tmp/vlc.defaults.list.tmp
mv /tmp/vlc.defaults.list.tmp $MIME_FILE
fi
ls /usr/share/mime/audio/* | sed -e 's@/usr/share/mime/@@' -e 's/\.xml/=vlc.desktop/' >> $MIME_FILE
#!/bin/sh
# $Id $
#
# Copyright © 2007 VideoLAN team
#
# Authors: http://forum.videolan.org/viewtopic.php?f=13&t=40560
# Rafaël Carré <funman@videolanorg>
#
# Sets VLC media player the default application for video mime types
# on a freedesktop compliant desktop
#
MIME_FILE=~/.local/share/applications/defaults.list
if [ ! -f $MIME_FILE ]
then echo "[Default Applications]" > $MIME_FILE
else grep -v 'video/' $MIME_FILE > /tmp/vlc.defaults.list.tmp
mv /tmp/vlc.defaults.list.tmp $MIME_FILE
fi
ls /usr/share/mime/video/* | sed -e 's@/usr/share/mime/@@' -e 's/\.xml/=vlc.desktop/' >> $MIME_FILE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment