diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 892b15d5..c9c707c5 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -349,6 +349,7 @@ patch_enable_all () enable_windowscodecs_32bppGrayFloat="$1" enable_windowscodecs_IMILBitmapSource="$1" enable_windowscodecs_WICCreateBitmapFromSection="$1" + enable_wine_inf_Directory_ContextMenuHandlers="$1" enable_wine_inf_Dummy_CA_Certificate="$1" enable_wine_inf_Performance="$1" enable_wine_inf_ProfileList_UserSID="$1" @@ -1221,6 +1222,9 @@ patch_enable () windowscodecs-WICCreateBitmapFromSection) enable_windowscodecs_WICCreateBitmapFromSection="$2" ;; + wine.inf-Directory_ContextMenuHandlers) + enable_wine_inf_Directory_ContextMenuHandlers="$2" + ;; wine.inf-Dummy_CA_Certificate) enable_wine_inf_Dummy_CA_Certificate="$2" ;; @@ -7069,6 +7073,21 @@ if test "$enable_windowscodecs_WICCreateBitmapFromSection" -eq 1; then ) >> "$patchlist" fi +# Patchset wine.inf-Directory_ContextMenuHandlers +# | +# | This patchset fixes the following Wine bugs: +# | * [#29523] Add 'New' context menu handler entry for directories +# | +# | Modified files: +# | * loader/wine.inf.in +# | +if test "$enable_wine_inf_Directory_ContextMenuHandlers" -eq 1; then + patch_apply wine.inf-Directory_ContextMenuHandlers/0001-wine.inf-Add-New-context-menu-handler-entry-for-dire.patch + ( + echo '+ { "Michael Müller", "wine.inf: Add '\''New'\'' context menu handler entry for directories.", 1 },'; + ) >> "$patchlist" +fi + # Patchset wine.inf-Dummy_CA_Certificate # | # | Modified files: diff --git a/patches/wine.inf-Directory_ContextMenuHandlers/0001-wine.inf-Add-New-context-menu-handler-entry-for-dire.patch b/patches/wine.inf-Directory_ContextMenuHandlers/0001-wine.inf-Add-New-context-menu-handler-entry-for-dire.patch new file mode 100644 index 00000000..96994f50 --- /dev/null +++ b/patches/wine.inf-Directory_ContextMenuHandlers/0001-wine.inf-Add-New-context-menu-handler-entry-for-dire.patch @@ -0,0 +1,24 @@ +From 868466d81e1b64dd88e8cbdc7a878202829f452e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +Date: Thu, 31 Mar 2016 23:23:09 +0200 +Subject: wine.inf: Add 'New' context menu handler entry for directories. + +--- + loader/wine.inf.in | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/loader/wine.inf.in b/loader/wine.inf.in +index d22b29b..88b088a 100644 +--- a/loader/wine.inf.in ++++ b/loader/wine.inf.in +@@ -182,6 +182,7 @@ HKCR,chm.file\shell\open\command,,2,"%10%\hh.exe %1" + HKCR,cplfile,,2,"Control Panel Item" + HKCR,cplfile\shell\cplopen,,2,"Open with Control Panel" + HKCR,cplfile\shell\cplopen\command,,2,"rundll32.exe shell32.dll,Control_RunDLL ""%1"",%*" ++HKCR,Directory\Background\shellex\ContextMenuHandlers\New,,16 + HKCR,DirectShow,,16 + HKCR,exefile,,2,"Application" + HKCR,exefile\DefaultIcon,,2,"%1" +-- +2.7.1 + diff --git a/patches/wine.inf-Directory_ContextMenuHandlers/definition b/patches/wine.inf-Directory_ContextMenuHandlers/definition new file mode 100644 index 00000000..d719f395 --- /dev/null +++ b/patches/wine.inf-Directory_ContextMenuHandlers/definition @@ -0,0 +1 @@ +Fixes: [29523] Add 'New' context menu handler entry for directories