Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Ignore RegistryException for browsers not in HKCU
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Nov 18, 2018
1 parent 91a9248 commit f501f29
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/setup.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ void main() {
writeln("Version: " ~ PROJECT_VERSION);

try {
const string[string] browsers = mergeAAs(getAvailableBrowsers(false), getAvailableBrowsers(true));
string[string] browsers = getAvailableBrowsers(false);

try
browsers = mergeAAs(browsers, getAvailableBrowsers(true));
catch (RegistryException) {
} // Just ignore if no browsers in HKCU

const string[string] engines = parseConfig(ENGINE_TEMPLATES);

DeflectorSettings settings = promptSettings(browsers, engines);
Expand Down

0 comments on commit f501f29

Please sign in to comment.