MamoruDS / obsidian-open-link-with

Open external link with specific brower in Obsidian

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working after installation

ezkb opened this issue · comments

commented

Hi,

thank you for creating this plugin for Obsidian.

I have followed your instructions for installation, I have also chosen, firefox-private, in the plugin options.

But when I click a link the default browser of Windows starts (in this case Chrome).

Is there anyway I can debug this so that I can find out more about the issue? Any logs or runtime information saved anywhere that I can provide you?

I have

  • Tried restarting obsidian
  • Checked that the win32 path in PRESET_BROWSERS corresponds with my installation
        win32: {
            cmd: path__namespace.join('c:', 'Program Files', 'Mozilla Firefox', 'firefox.exe'),
            optional: {
                private: {
                    args: ['--private-window'],
                },
            },
            test: (b) => __awaiter(void 0, void 0, void 0, function* () {
                return fs.existsSync(b.cmd);
            }),
        },

Sorry for the late reply, and thanks for raising this issue. I reproduced the problem you described on my windows machine, and it seems to be caused by spaces in the path. It's pretty wired because the problem didn't occur in previous tests.

Anyway, I've solved the problem by adding quotes to the path, and it passed the test on my machine. Please update the plugin to version 0.1.3 in obsidian; this should solve your problem. Also, I added the feature to show logs, which need to be turned on in settings, and then you can see them in developer tools.

If you have any more issues, please feel free to let me know.