[vlc-devel] [PATCH] Add a context menu handler for .iso files

Filip Roséen filip at atch.se
Mon Oct 10 21:39:01 CEST 2016


It is relevant, and worth mentioning, that this patch is a direct
reply to the below linked ticket.

 - https://trac.videolan.org/vlc/ticket/17472

In the future you can include *"fixes #17472"* in the commit-message
to signal that the changes are due to fixing an issue on
*trac.videolan.org*.

On 2016-10-04 11:00, Dag Wieers wrote:

> Various ISO file formats are natively supported by VideoLAN client.
> So having a context-menu to play them directly is very useful and easier
> than having to open them from VLC, or having to drag them to the GUI.
> ---
>  extras/package/win32/NSIS/helpers/extensions.nsh |    1 +
>  extras/package/win32/msi/extensions.wxs          |    8 ++++++++
>  2 files changed, 9 insertions(+), 0 deletions(-)
> 
> diff --git a/extras/package/win32/NSIS/helpers/extensions.nsh b/extras/package/win32/NSIS/helpers/extensions.nsh
> index d86b194..f2c27c2 100644
> --- a/extras/package/win32/NSIS/helpers/extensions.nsh
> +++ b/extras/package/win32/NSIS/helpers/extensions.nsh
> @@ -173,6 +173,7 @@ FunctionEnd
>    !insertmacro ${_action} Video ".flv"
>    !insertmacro ${_action} Video ".gvi"
>    !insertmacro ${_action} Video ".gxf"
> +  !insertmacro ${_action} Video ".iso"
>    !insertmacro ${_action} Video ".m1v"
>    !insertmacro ${_action} Video ".m2t"
>    !insertmacro ${_action} Video ".m2v"
> diff --git a/extras/package/win32/msi/extensions.wxs b/extras/package/win32/msi/extensions.wxs
> index d535679..8c2ee0e 100644
> --- a/extras/package/win32/msi/extensions.wxs
> +++ b/extras/package/win32/msi/extensions.wxs
> @@ -807,6 +807,14 @@
>                          <Verb Id='enqueue' Command='Enqueue in VLC media player' TargetFile="vlc.exe" Argument="--started-from-file --playlist-enqueue "%1"" />
>                      </Extension>
>                  </ProgId>
> +                <RegistryValue Root="HKLM" Key="Software\Clients\Media\VLC\Capabilities\FileAssociations" Name=".iso" Value="VLC.iso.Document" Type="string" />
> +                <RegistryValue Root="HKCR" Key="Applications\vlc.exe\SupportedTypes" Name=".iso" Value="" Type="string" />
> +                <ProgId Id='VLC.iso.Document' Description='Video File' Icon='vlc.ico' Advertise='no'>
> +                    <Extension Id='iso'>
> +                        <Verb Id='open' Command='Play with VLC media player' TargetFile="vlc.exe" Argument="--started-from-file --no-playlist-enqueue "%1"" />
> +                        <Verb Id='enqueue' Command='Enqueue in VLC media player' TargetFile="vlc.exe" Argument="--started-from-file --playlist-enqueue "%1"" />
> +                    </Extension>
> +                </ProgId>
>                  <RegistryValue Root="HKLM" Key="Software\Clients\Media\VLC\Capabilities\FileAssociations" Name=".m3u" Value="VLC.m3u.Document" Type="string" />
>                  <RegistryValue Root="HKCR" Key="Applications\vlc.exe\SupportedTypes" Name=".m3u" Value="" Type="string" />
>                  <ProgId Id='VLC.m3u.Document' Description='Video File' Icon='vlc.ico' Advertise='no'>
> -- 
> 1.7.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20161010/2da2082d/attachment.html>


More information about the vlc-devel mailing list