gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: starting an app bundle natively - NSWorkspace launchApplication


From: Riccardo Mottola
Subject: Re: starting an app bundle natively - NSWorkspace launchApplication
Date: Mon, 8 Jul 2024 14:04:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 SeaMonkey/2.53.18.2

Hi,

Fred Kiefer wrote:
This could be handled by openFile:withApplication: in the same class. What I 
don’t see is how you could use any of this mechanisms for command completion 
but that is another question.

the code looks for app bundles in standard locations () or analyzes the current directory typed in by the user. The code maybe not perfect, but appears to work. I added ".app" support. Probably it can benefit of at least partial caching. You can look at it, I opened a PR on my own branch, so we can collaborate on it.

I extracted a lot of code (without changing functionality) between "Run" and "OpenWith". This makes things clearer... however I found some differences which I want to understand, so that further duplication can be eliminated.

Riccardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]