Touchbar Not showing F1 - F12 keys on specific Application

Joined
Feb 6, 2011
Messages
13
Reaction score
0
Points
1
Hi everyone.

I have a nice new macbook pro - and I have a Java application which has a bundled mac os launcher.

I want for this particular application - the F1 - F12 keys to show by default on the touch bar.

I have gone into System Preferences -> Keyboard -> Shortcuts - FN keys and added the application via its supplied launcher to the list of applications.

However due to the nature of this application (java) - the program launches as "IBM Host On-Demand".
Screen Shot 2017-05-24 at 04.42.14.png

I have this added to my shortcuts for FN keys here:

Screen Shot 2017-05-24 at 04.42.18.png

The application is installed here /Applications/HostOnDemand:

Screen Shot 2017-05-24 at 04.42.23.png


When the application launches it seems to 'start another application' which I believe is WSCachedLoader - which is likely some Java Unix process kicked off by the 'Host On-Demand' launcher seen above.

Screen Shot 2017-05-24 at 04.42.27.png

This appears to match up closely to a jar in the /Applications/HostOnDemand folder:

Screen Shot 2017-05-24 at 04.42.33.png

The long and short of this is - that when I launch Host On-Demand, the F keys do not show up on my keyboard. I cannot add WSCachedLoader2.jar to the F keys shortcut list of apps - presumably because it is not a launcher type.

Any ideas on how I can make this application 'recognised' by the Keyboard Shortcuts Fn type so that when I launch it, the F keys appears in my touchbar?
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,044
Reaction score
2,460
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
That particular part of System Preferences only recognizes Mac apps and if you could arbitrarily add the Java executable, that would make this work, but not so here since as you've surmised, the Host On Demand is just a wrapper around the actual JAR (Java) application that gets launched..

In this case, not sure there is a work-around short of holding down the FN key to the see the function keys..
 
OP
R
Joined
Feb 6, 2011
Messages
13
Reaction score
0
Points
1
I can't help but feel there has to be a solution here. Is there some kind of programmable interface to the touchbar? Maybe I could write my own 'listener' which would watch which window has focus and then manually invoke the F Keys to show up?
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,044
Reaction score
2,460
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
There is absolutely an API for the TouchBar which is used by many applications to show you custom icons and data.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top