james
June 13, 2017, 7:09pm
1
Inspired by another thread re: associating file types with RawTherapee.
I don’t like the non file browser mode of RawTherapee (and I think it is planned to get rid of it), also I don’t like having to browse to the relevant folder every time I open RawTherapee, so here is a reg file that adds “Browse with RawTherapee” to the context menu of a directory (remember save as .reg unicode file). Enjoy, hope others find this useful.
And the obligatory disclaimer
https://technet.microsoft.com/en-us/library/cc977982.aspx
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\Browse with RawTherapee]
@="Browse with RawTherapee"
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\Browse with RawTherapee\command]
@="\"C:\\Program Files\\RawTherapee\\5.1\\rawtherapee.exe\" -w \"%1\""
4 Likes
Thanks @james , I opened a new issue:
opened 03:33PM - 18 Jun 17 UTC
closed 06:12PM - 06 Feb 18 UTC
patch provided
type: enhancement
From https://discuss.pixls.us/t/windows-context-menu-open-directory-with-rawther… apee/4442
Untested. A Windows user should take over.
```diff
diff --git a/tools/win/InnoSetup/WindowsInnoSetup.iss.in b/tools/win/InnoSetup/WindowsInnoSetup.iss.in
index 55305d5f..4862e808 100644
--- a/tools/win/InnoSetup/WindowsInnoSetup.iss.in
+++ b/tools/win/InnoSetup/WindowsInnoSetup.iss.in
@@ -89,6 +89,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{
;Name: "desktopicon\common"; Description: "For all users"; GroupDescription: "Additional icons:"; Flags: exclusive
;Name: "desktopicon\user"; Description: "For the current user only"; GroupDescription: "Additional icons:"; Flags: exclusive unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
+Name: regBrowseFolder; Description: "Add ""Browse with RawTherapee"" option to context menu when right-clicking on a folder."; GroupDescription: File extensions:
[Files]
Source: "{#MyBuildBasePath}\rawtherapee*.exe"; DestDir: "{app}"; Flags: ignoreversion
@@ -125,3 +126,6 @@ Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName} {#MyA
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
+[Registry]
+Root: HKCU; Subkey: "SOFTWARE\Classes\Directory\shell\Browse with RawTherapee"; ValueType: string; ValueData: "Browse with RawTherapee"; Flags: uninsdeletekey; Tasks: regBrowseFolder
+Root: HKCU; Subkey: "SOFTWARE\Classes\Directory\shell\Browse with RawTherapee\command"; ValueType: string; ValueData: "{app}\{#MyAppExeName} -w ""%1"""; Flags: uninsdeletekey; Tasks: regBrowseFolder
```
Things to test:
- Whether the option is selectable by the user during installation, should be selected by default,
- Whether the feature works after installation if RT is installed to a folder with spaces in its name,
- Whether it works when right-clicking folders with spaces in their names.
1 Like