xwidgets cannot render local file on Linux reddit / emacs ---------------------------------------------------------------------- J-ky · 2022-06-05 02:07 I compile Emacs with xwidgets, and it is working fine when I am browsing the Internet. However, I am not able to use xwidget-webkit to open any local file with the url as "file:///home/user/test.html". Does anyone observes the same bug? On macOS, this is fine. ---------------------------------------------------------------------- lskph5vg · 2022-06-11 02:50 Try this, helped me: [https://stackoverflow.com/a/71740957](https://st ackoverflow.com/a/71740957) ---------------------------------------------------------------------- J-ky · 2022-06-11 04:22 So is it an arch Linux specific bug? Or do I need to modify the source code of emacs to make it works? ---------------------------------------------------------------------- lskph5vg · 2022-06-11 05:35 I encountered it on Fedora 36. Just running the commands described in the post fixed the problem for me: ``` rm ~/.local/share/mime/packages/user-extension-html.xml update-mime-database ~/.local/share/mime ```