Hi All,
Opening multiple files in the IDE has its limitations.
When the IDE is closed:
• I'm able to double-click a PureBasic file and it will open in the IDE.
• I'm able to select multiple PureBasic files, right-click and use the Open With context menu item.
When the IDE is open:
• I can use the IDE Open menu option to select additional files.
• I'm not able to double-click a PureBasic file and have it open in a separate tab.
• I'm not able to select multiple PureBasic files, right-click and use the Open With context menu item.
-----------------------------------
The initial reason for resurrecting my virtual Linux build was to test my Chromium Framework. After a few small changes and some new code bits the time spent in Hyper-V proved worthwhile.
Confirmed, any Chromium based browser installed in Linux can be controlled and manipulated from PureBasic. But unlike Windows (WebView2) the Framework cannot be used with the (WebKitGTK) WebGadget or WebViewGadget.
Note: I've not been able to test macOS, but the Linux examples should work without any changes.
Ubuntu 24.04.2 - Opening Files in IDE
Ubuntu 24.04.2 - Opening Files in IDE
Last edited by JHPJHP on Sun Jul 06, 2025 6:58 am, edited 2 times in total.
If you're not investing in yourself, you're falling behind.
My PureBasic Stuff ➤ FREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
Re: Ubuntu 24.04.2 - Opening Files in IDE
@JHPJHP
I use Linux but am a bit unorthodox. I've never "installed" PB as such, mostly because the scripts seem to cater more for Debian and Ubuntu and I don't typically use those systems.
I tend to drop the extracted PB folder into ~/.local/bin and create my own .desktop file so I have a menu entry.
Typically, I would then have to associate a .pb file with PB at first using "Open with", then subsequently it would recognise those files. Having said that, the behaviour is very much as you describe except that trying to open multiple files when the IDE is closed only opens the first of the selected files.
I just assumed it was my awkward way of going about it that caused the issue? I never previously tried running the register.sh, but having just done that, it didn't make any difference to my setup.
I've got used to just opening PB and it remembering the files that were there from the last session, then just dragging and dropping files onto the IDE,
Sorry I can't be more helpful.
Moulder.
I use Linux but am a bit unorthodox. I've never "installed" PB as such, mostly because the scripts seem to cater more for Debian and Ubuntu and I don't typically use those systems.
I tend to drop the extracted PB folder into ~/.local/bin and create my own .desktop file so I have a menu entry.
Typically, I would then have to associate a .pb file with PB at first using "Open with", then subsequently it would recognise those files. Having said that, the behaviour is very much as you describe except that trying to open multiple files when the IDE is closed only opens the first of the selected files.
I just assumed it was my awkward way of going about it that caused the issue? I never previously tried running the register.sh, but having just done that, it didn't make any difference to my setup.
I've got used to just opening PB and it remembering the files that were there from the last session, then just dragging and dropping files onto the IDE,
Sorry I can't be more helpful.
Moulder.
"If it ain't broke, fix it until it is!
This message is brought to you thanks to SenselessComments.com
My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
This message is brought to you thanks to SenselessComments.com
My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
Re: Ubuntu 24.04.2 - Opening Files in IDE
Use purebasic_gtk2JHPJHP wrote: Sat Jun 28, 2025 9:54 am • I'm not able to double-click a PureBasic file and have it open in a separate tab.
Re: Ubuntu 24.04.2 - Opening Files in IDE
Hi moulder61, AZJIO,
Thank you both for confirming this is a known issue, it saves me time from stressing the small stuff.
• Notice the uppercase F, it makes a difference.
Update the desktop database:
Thank you both for confirming this is a known issue, it saves me time from stressing the small stuff.
Opening multiple files just add %F to the end of your Exec line:moulder61 wrote:except that trying to open multiple files when the IDE is closed only opens the first of the selected files
• Notice the uppercase F, it makes a difference.
Code: Select all
Exec=/home/jhpjhp/Apps/purebasic/compilers/purebasic %F
Code: Select all
update-desktop-database ~/.local/share/applications
Last edited by JHPJHP on Sat Jun 28, 2025 10:56 pm, edited 1 time in total.
If you're not investing in yourself, you're falling behind.
My PureBasic Stuff ➤ FREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
Re: Ubuntu 24.04.2 - Opening Files in IDE
@JHPJHP
Nice tips, they worked a treat.
Thanks,
Moulder.
Nice tips, they worked a treat.

Thanks,
Moulder.
"If it ain't broke, fix it until it is!
This message is brought to you thanks to SenselessComments.com
My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
This message is brought to you thanks to SenselessComments.com
My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV