Login  •  Register


The time is now: Mon Sep 23, 2019 4:21 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 4 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Tue Mar 26, 2019 3:57 am 
Offline
Space Cadet

Joined: Tue Mar 26, 2019 3:52 am
Posts: 1
So, I've had my SheepShaver running in an app bundle for a wrapper project I've been working on. I've come across a problem that I cannot seem to fix.

The ultimate goal is to have OSX set SheepShaver to invisible while booting, and make it visible when the startup application has been launched. I've already built the tools to make OS9 issue commands to a host-side OSX script that changes the visibility when the application launches.

The main problem I'm having is that I can't get SheepShaver to run as an agent accessory which hides the dock icon. If the dock icon is clicked, it automatically gives visibility back to SS which is an issue.

There is an Info.plist attribute called LSUIElement which will launch an application as an accessory. Meaning it will not show up in the doc or task manager, but windows will still have visibility if they are marked as visible in system events.

However, to the best of my attempts after several hours moving it around and delving into the info.plist, it still does not make the dock icon disappear. Is there anything in SS that is overriding this? Does anyone have an idea?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Mar 26, 2019 3:55 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2687
Location: Emaculation.com
I've fought with this one myself; I seem to recall one method I used to make it work was to run the SheepShaver MachO via the terminal with the LSUI flag instead of launching via the Finder. The wrapper I used to do that used the LSUI plist entry and stayed hidden just fine.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Mar 26, 2019 9:03 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1076
How do you set the LSUIelement flag when launching an executable from the terminal????


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Mar 26, 2019 11:10 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2687
Location: Emaculation.com
Hmm; can't find the method I used now. But I did find this:
https://discussions.apple.com/thread/140891

It suggests that if you're using an applescript to launch an app, you may need to call lsregister to get LSUIelement to be properly recognized in some situations.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 4 posts ]


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group