launching livecode files in Windows in one instance of LiveCode

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: launching livecode files in Windows in one instance of LiveCode

Post by FourthWorld » Sat Oct 05, 2024 10:00 pm

Thank you, Sparkout. I had thought he was making an application.

If LC hasn't set the Registry properly, and/or isn't using the relaunch message correctly, that would be a bug which should be addressed quickly.

It's been a while since I installed LC on Windows. Isn't there an option related to this during install?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

golife
Posts: 115
Joined: Fri Apr 02, 2010 12:10 pm

Re: launching livecode files in Windows in one instance of LiveCode

Post by golife » Mon Oct 07, 2024 3:01 pm

@Sparkout @Richard ...

Yes, it seems so that it is a problem with Windows only. I should not have to create a workaround. I assume most here are not using Windows otherwise it would already have been a discussion point. Of course, I can open files from the IDE, but it is not as convenient in most cases.

I will soon open a bug report and then we may receive an answer if it is a bug, or a feature, or we missed a point.

Personally, I think, it is worth a value in the Settings or a global command: Open new stacks from the desktop in a new instance of LiveCode, or open them in the currently running instance.

Thank you for all contributions. I may spend time (not just now) to implement a workaround and share with others interested. But it will involve redirecting the opening call of LiveCode.exe itself. So -- it is not a good solution.

Roland

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: launching livecode files in Windows in one instance of LiveCode

Post by FourthWorld » Mon Oct 07, 2024 4:05 pm

You may want to try reinstalling, paying close attention to dialogs that show up. IIRC there's one either during installation or launch that asks if you want to set the Registry to associate the file type with LC.

For others making apps: I found the discussion of file associations is nicely handled in the User Guide on p445-449.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

golife
Posts: 115
Joined: Fri Apr 02, 2010 12:10 pm

Re: launching livecode files in Windows in one instance of LiveCode

Post by golife » Tue Oct 08, 2024 5:26 pm

Richard, the file type is associated with LiveCode.exe, and the registry shows it. Otherwise, it would not show the icon and launch. But maybe something else in the registry is wrong.

Post Reply