# Local files not opening

**URL:** <https://forum.obsidian.md/t/local-files-not-opening/5313>\
**Category:** Help\
**Created:** [September 5, 2020, 10:54am UTC](https://forum.obsidian.md/t/local-files-not-opening/5313 "2020-09-05T10:54:56Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [September 5, 2020, 10:54am UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/1 "2020-09-05T10:54:57Z")

</div>

Hi all,

does linking to local files (outside the vault) work for everyone out there? Have been playing around a lot, also searching the obsidian forum - but still haven’t found any solution!

I am working on linux, trying to insert a link to a pdf like this:

> [Name of the file](file:///home/user/documents/file\_name.pdf)

In preview mode, this is correctly shown as a link. But if I click on it, _nothing_ happens… If I try the same in any other markdown editor, the file instantly opens in the default app.

Did I miss anything? The file name neither includes spaces nor special characters…

Thanks for any advice!

---

<div class="post-metadata">

**Author:** ![Silver](https://forum.obsidian.md/user_avatar/forum.obsidian.md/silver/32/5_2.png) [@Silver](https://forum.obsidian.md/u/Silver)\
**Post date:** [September 6, 2020, 5:47am UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/2 "2020-09-06T05:47:53Z")

</div>

Can you check the console and see if there are any errors?

To check for errors, first open the developer tools by pressing `Ctrl-Shift-I` on Windows/Linux or `Cmd-Opt-I` on macOS, and then go to the “Console” tab. If you want to save the error to a log file, you can right click on the error and choose “Save as…”.

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [September 6, 2020, 7:25am UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/3 "2020-09-06T07:25:59Z")

</div>

No messages shown in the console.

When I open a pdf in preview mode within obsidian, “open with default app” works without any problems, by the way.

---

<div class="post-metadata">

**Author:** ![moz](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/48db29/32.png) [@moz](https://forum.obsidian.md/u/moz)\
**Post date:** [September 6, 2020, 5:43pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/4 "2020-09-06T17:43:20Z")

</div>

I notice that there’s a wrong hotkey guide about opening the developer tools in the help doc, it may let some people who is not familiar with Electron feel confused. I’ll fix it up, and make a pull request on the docs GitHub repository. 😄

> If you are building or modifying your own css, you can open the developer tools by using `Ctrl/Cmd+Shift+I` to get information on the elements you want to customize.

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [September 10, 2020, 9:27am UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/5 "2020-09-10T09:27:27Z")

</div>

Are there any other ideas what the problem might be?

Are there other users facing the same problem?

Anyone working on Ubuntu Mate 20.04? Does it work for you or not?

What about users on other Linux systems?

Still struggling with this… If I don’t get it to work, some of obsidian’s great functions become quite useless for me… 😟

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [September 11, 2020, 6:14pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/6 "2020-09-11T18:14:31Z")

</div>

Just to add:

I tried to open the AppImage via terminal, in order to check if there is any error message shown… But no, it correctly states: “open file xyz” - but still it is not opened… 🤔

---

<div class="post-metadata">

**Author:** ![sam.baron](https://forum.obsidian.md/user_avatar/forum.obsidian.md/sam.baron/32/20_2.png) [@sam.baron](https://forum.obsidian.md/u/sam.baron)\
**Post date:** [September 12, 2020, 7:37pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/7 "2020-09-12T19:37:30Z")

</div>

Sorry you haven’t figured this out. You might want to ask on Discord. I know there are plenty of linux users there.

---

<div class="post-metadata">

**Author:** ![argentum](https://forum.obsidian.md/user_avatar/forum.obsidian.md/argentum/32/7733_2.png) [@argentum](https://forum.obsidian.md/u/argentum)\
**Post date:** [September 16, 2020, 2:45pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/8 "2020-09-16T14:45:42Z")

</div>

+1 I can also reproduce this!

Edit: Looking a little closer at the `mimeapps.list` because of [URL Scheme doesn't work on Linux](https://forum.obsidian.md/t/url-scheme-doesnt-work-on-linux/5794), it turns out that opening Obsidian makes it the **default** application for `html` files, instead of the browser. I don’t know if this is related, but this is definitely a bug. I don’t think Obsidian is intended to open other local html files, but even if it is it should be added to the `[Added Associations]` section instead of making it the default.

---

<div class="post-metadata">

**Author:** ![welstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/welstand/32/8030_2.png) [@welstand](https://forum.obsidian.md/u/welstand)\
**Post date:** [September 16, 2020, 7:16pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/9 "2020-09-16T19:16:08Z")

</div>

Same problem here and I’m a Mac user.

---

<div class="post-metadata">

**Author:** ![Licat](https://forum.obsidian.md/user_avatar/forum.obsidian.md/licat/32/2_2.png) [@Licat](https://forum.obsidian.md/u/Licat)\
**Post date:** [September 16, 2020, 10:17pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/10 "2020-09-16T22:17:42Z")

</div>

Seems like this is caused by us stripping the extra `/` off the `file:///` protocol (the third one should only be stripped on Windows). Will fix in the next insider release.

---

<div class="post-metadata">

**Author:** ![bbain](https://forum.obsidian.md/user_avatar/forum.obsidian.md/bbain/32/89_2.png) [@bbain](https://forum.obsidian.md/u/bbain)\
**Post date:** [September 18, 2020, 2:46pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/11 "2020-09-18T14:46:10Z")

</div>

stipping the third did not work for me on windows but the /// and back / all the way down did

---

<div class="post-metadata">

**Author:** ![N1755L](https://forum.obsidian.md/user_avatar/forum.obsidian.md/n1755l/32/9436_2.png) [@N1755L](https://forum.obsidian.md/u/N1755L)\
**Post date:** [May 19, 2021, 6:18am UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/12 "2021-05-19T06:18:30Z")

</div>

> [@alltagsverstand](#):
>
> [Name of the file](file:///home/user/documents/file\_name.pdf)

Have you tried bracketing the file name with \< and \>?:

[Name of the file](\<file:///home/user/documents/file\_name.pdf\>)

Since your question was asked 8 months ago, I assume you’ve likely resolved this issue by now? But I see no resolution here, so I’ll post.

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [May 19, 2021, 2:32pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/13 "2021-05-19T14:32:23Z")

</div>

> [@N1755L](#):
>
> Have you tried bracketing the file name with \< and \>?:

This is what I am doing anyway by default, even if the link does not contain spaces…

> [@N1755L](#):
>
> I see no resolution here

The solution was just mentioned two posts above yours - this was a temporary bug caused by obsidian which has been fixed by Licat with the next insider release… 😉

But thanks for your help anyway! 🙂

---

<div class="post-metadata">

**Author:** ![N1755L](https://forum.obsidian.md/user_avatar/forum.obsidian.md/n1755l/32/9436_2.png) [@N1755L](https://forum.obsidian.md/u/N1755L)\
**Post date:** [May 19, 2021, 5:59pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/14 "2021-05-19T17:59:45Z")

</div>

LOL, yeah, as soon as I’d finished posting and hit the Back button (well actually, I use Alt-Left Arrow) to get back to the search listing, I noticed the “Resolved help” tag just below the thread title (I hadn’t noticed Licat’s post somehow though). 🤪

I’m figuring out this particular BBS forum bit by bit, I haven’t been doing forums in quite a while, and this one seems to be fairly different from others.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [April 1, 2023, 1:41pm UTC](https://forum.obsidian.md/t/local-files-not-opening/5313/15 "2023-04-01T13:41:31Z")

</div>

Closed on April 1, 2023, 1:41pm UTC


