Page 1 of 1

Ubuntu 24.04.2 - Opening Files in IDE

Posted: Sat Jun 28, 2025 9:54 am
by JHPJHP
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.

Re: Ubuntu 24.04.2 - Opening Files in IDE

Posted: Sat Jun 28, 2025 4:29 pm
by moulder61
@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.

Re: Ubuntu 24.04.2 - Opening Files in IDE

Posted: Sat Jun 28, 2025 4:41 pm
by AZJIO
JHPJHP 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.
Use purebasic_gtk2

Re: Ubuntu 24.04.2 - Opening Files in IDE

Posted: Sat Jun 28, 2025 9:55 pm
by JHPJHP
Hi moulder61, AZJIO,

Thank you both for confirming this is a known issue, it saves me time from stressing the small stuff.
moulder61 wrote:except that trying to open multiple files when the IDE is closed only opens the first of the selected files
Opening multiple files just add %F to the end of your Exec line:
• Notice the uppercase F, it makes a difference.

Code: Select all

Exec=/home/jhpjhp/Apps/purebasic/compilers/purebasic %F
Update the desktop database:

Code: Select all

update-desktop-database ~/.local/share/applications

Re: Ubuntu 24.04.2 - Opening Files in IDE

Posted: Sat Jun 28, 2025 10:27 pm
by moulder61
@JHPJHP

Nice tips, they worked a treat. :D

Thanks,

Moulder.