From bdbfdb6681e504044f4f7b614a3887403a586f35 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 12 May 2026 11:02:54 -0700 Subject: [PATCH] Fixed WPFTweaksRemoveGallery and WPFTweaksRemoveHome (#4464) * Fixed WPFTweaksRemoveGallery not setting explorer launchto * Update tweaks.json * Update tweaks.json --- config/tweaks.json | 47 +++++++++++++++++----------------------------- 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index a4b6deec..24372883 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -691,41 +691,28 @@ "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removeonedrive" }, "WPFTweaksRemoveHome": { - "Content": "File Explorer Home - Disable", - "Description": "Removes the Home from Explorer and sets This PC as default.", + "Content": "File Explorer Home and Gallery - Disable", + "Description": "Removes the Home and Gallery from Explorer and sets This PC as default.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", - "InvokeScript": [ - " - Remove-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" - Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name LaunchTo -Value 1 - " - ], - "UndoScript": [ - " - New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" - Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name LaunchTo -Value 0 - " + "registry": [ + { + "Path": "HKCU:\\Software\\Classes\\CLSID\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}", + "Name": "System.IsPinnedToNameSpaceTree", + "Value": "0", + "Type": "DWord", + "OriginalValue": "" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "Name": "LaunchTo", + "Value": "1", + "Type": "DWord", + "OriginalValue": "" + } ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removehome" }, - "WPFTweaksRemoveGallery": { - "Content": "File Explorer Gallery - Disable", - "Description": "Removes the Gallery from Explorer and sets This PC as default.", - "category": "z__Advanced Tweaks - CAUTION", - "panel": "1", - "InvokeScript": [ - " - Remove-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" - " - ], - "UndoScript": [ - " - New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" - " - ], - "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removegallery" - }, "WPFTweaksDisplay": { "Content": "Visual Effects - Set to Best Performance", "Description": "Sets the system preferences to performance. You can do this manually with sysdm.cpl as well.",