share: add desktop files to open BR/DVD/CDA/VCD

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
This commit is contained in:
Mathieu Velten 2019-10-17 00:56:08 +02:00 committed by Thomas Guillem
parent 273b13b01f
commit 488e0d6b64
6 changed files with 39 additions and 6 deletions

View File

@ -5,7 +5,7 @@ EXTRA_DIST =
desktopdir = $(datadir)/applications
if !HAVE_WIN32
if !HAVE_DARWIN
desktop_DATA = vlc.desktop
desktop_DATA = vlc.desktop vlc-openbd.desktop vlc-opendvd.desktop vlc-openvcd.desktop vlc-opencda.desktop
appdatadir = $(datarootdir)/metainfo
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = vlc.appdata.xml.in
@ -13,9 +13,10 @@ endif
endif
EXTRA_DIST += vlc.desktop.in vlc.desktop.mimetypes
EXTRA_DIST += vlc-openbd.desktop.in vlc-opendvd.desktop.in vlc-openvcd.desktop.in vlc-opencda.desktop.in
CLEANFILES += $(desktop_DATA) $(appdata_DATA)
vlc.desktop: vlc.desktop.in $(top_builddir)/config.status
%.desktop: %.desktop.in $(top_builddir)/config.status
$(AM_V_GEN)mimetypes="$$(sed 's/\s*#.*$$//g' $(srcdir)/vlc.desktop.mimetypes | egrep -v '^$$' | tr "\n" ';')"; \
sed \
-e 's,\@bindir\@,$(bindir),g' \

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Name=VLC media player (Blu-ray)
NoDisplay=true
Exec=@bindir@/vlc --started-from-file bluray://%f
Icon=vlc
Terminal=false
Type=Application
MimeType=x-content/video-bluray

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Name=VLC media player (Audio CD)
NoDisplay=true
Exec=@bindir@/vlc --started-from-file cdda://%f
Icon=vlc
Terminal=false
Type=Application
MimeType=x-content/audio-cdda

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Name=VLC media player (DVD)
NoDisplay=true
Exec=@bindir@/vlc --started-from-file dvd://%f
Icon=vlc
Terminal=false
Type=Application
MimeType=x-content/video-dvd

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Name=VLC media player (VCD)
NoDisplay=true
Exec=@bindir@/vlc --started-from-file vcd://%f
Icon=vlc
Terminal=false
Type=Application
MimeType=x-content/video-vcd;x-content/video-svcd

View File

@ -119,10 +119,6 @@ x-scheme-handler/icyx # Icecast
# Linux desktop environment hooks for ISOs etc.
application/x-cd-image
x-content/video-vcd
x-content/video-svcd
x-content/video-dvd
x-content/audio-cdda
x-content/audio-player
# Playlists / text/xml list with URLs