Ubuntu 24.04.2 - Opening Files in IDE

Linux specific forum
User avatar
JHPJHP
Addict
Addict
Posts: 2257
Joined: Sat Oct 09, 2010 3:47 am

Ubuntu 24.04.2 - Opening Files in IDE

Post 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.
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 StuffFREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Ubuntu 24.04.2 - Opening Files in IDE

Post 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.
"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
AZJIO
Addict
Addict
Posts: 2187
Joined: Sun May 14, 2017 1:48 am

Re: Ubuntu 24.04.2 - Opening Files in IDE

Post 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
User avatar
JHPJHP
Addict
Addict
Posts: 2257
Joined: Sat Oct 09, 2010 3:47 am

Re: Ubuntu 24.04.2 - Opening Files in IDE

Post 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
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 StuffFREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Ubuntu 24.04.2 - Opening Files in IDE

Post by moulder61 »

@JHPJHP

Nice tips, they worked a treat. :D

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
Post Reply