Hi! I have tried a couple of different external editors like Webstorm, VS Code etc… But when adding them as external editors in the BSS settings, they just wont open when clicking on a script and selecting open in editor. Is this a problem I can fix or is there something deeper going on here? I’m running Kubuntu 24.04 on X11. Thank you so much!
Can you share a screenshot of your Settings > External Editors config?
This file is in /var/lib/flatpak/app/com.jetbrains.WebStorm/current/active/files/bin/ but will only run with a no sandbox command: flatpak run com.jetbrains.WebStorm --no-sandbox. Do I have to reinstall the program with not flatpak? I’d prefer not to, because I like how I have it organized currently…
I found a way to do this for flatpak applications.
Create a bash script that calls the editor and passes the file to be opened as a parameter. Save those scripts and call them as external editor in Bootstrap Studio.
It took a bit of searching to find the right parameters. I use Linux Mint 22.1 Cinnamon and was able to use the program launcher command from the menu as a basis. Instead of %F, I had to use $@.
See my two bash scripts below.
bash script notepad-next.sh:
#!/bin/bash
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=NotepadNext --file-forwarding com.github.dail8859.NotepadNext @@ $@ @@
bash script visual-studio-code.sh:
#!/bin/bash
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=code --file-forwarding com.visualstudio.code --reuse-window @@ $@ @@
THIS is why I love linux! You learn something everyday that WILL prove useful in the future!!! I didn’t manage to find this out by myself so I started using it with vscode from Ubuntu discover (I’m on Kubuntu because I need to use some apps that have only been developed for Ubuntu LTS on wayland lol) Anyways, I will try to make Webstorm work now!!! Thanks!