Stop russian war. 🇺🇦 Free Ukraine!
Tired of copying and pasting the file path when an error occurs?
With this browser extension, clic on a link to open the file in your favourite text editor.
This extension is intended/useful for web developers.
For Firefox, install the bash script:
- Download openfileeditor.sh and openfileeditor.json
- for Linux put them into: ~/.mozilla/native-messaging-hosts/ (docs)
- for macOS put them into: ~/Library/Application Support/Mozilla/NativeMessagingHosts/ (docs)
For Chrome, install the bash script:
- Download openfileeditor.sh and openfileeditor.json
- for Linux put them into: ~/.config/google-chrome/NativeMessagingHosts/ (docs)
- for macOS put them into: ~/Library/Application Support/Google/Chrome/NativeMessagingHosts/ (docs)
For Chromium, install the bash script:
- Download openfileeditor.sh and openfileeditor.json
- for Linux put them into: ~/.config/chromium/NativeMessagingHosts/ (docs)
- for macOS put them into: ~/Library/Application Support/Chromium/NativeMessagingHosts/ (docs)
For Opera, install the bash script:
- Download openfileeditor.sh and openfileeditor.json
- for Linux put them into: /etc/opt/chrome/native-messaging-hosts/ (docs)
- for macOS put them into: ~/Library/Application Support/Google/Chrome/NativeMessagingHosts/ (docs)
Secondly:
- Update the path of openfileeditor.sh in openfileeditor.json (it must exists)
- Be sure that openfileeditor.sh is executable (
chmod +x openfileeditor.sh) - By default, the script will try to run geany for text files, and if it's not available, it will run xdg-open, so feel free to update it with your favourite text editor
Thirdly, install the extension:
It's automatic with your browser.
But it's not the case for openfileeditor.sh and openfileeditor.json, follow again the installation for them.
You must update your error page, read demo examples.
It's also working with xyz.sentry.io stack traces.
Open your favourite text editor, when an error occurs in your website, click on the link to open the file.
Try the demo.
There are logs in your browser console (OpenFileEditor: ...) and in your tmp directory (/tmp/openfileeditor.txt). Don't be stupid, you must have the file on your computer.
Current version: 1.1.0 (03/03/2026)
This program is provided under the terms of the GNU GPLv2+ license.
If you like, take some of your time to improve some translations, go to https://bit.ly/2HyCCEc.