[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #11429 [meek]: meek-http-helper opens up a second dock icon
#11429: meek-http-helper opens up a second dock icon
------------------------+-----------------
Reporter: dcf | Owner: dcf
Type: defect | Status: new
Priority: normal | Milestone:
Component: meek | Version:
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
------------------------+-----------------
Comment (by dcf):
Replying to [comment:3 lunar]:
> I'm not sure what has been tried already. It seems that a dedicated
`plist` that would set `LSUIElement` to 1 would get the desired effect.
>
>
https://developer.apple.com/library/mac/documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/20001431-108256
Thanks for this hint. Inside of TorBrowser.app, there is another app
directory, Contents/MacOS/TorBrowser.app, which is the one that actually
contains the firefox executable. If I edit
Contents/MacOS/TorBrowser.app/Info.plist to add
{{{
<key>LSUIElement</key>
<true/>
}}}
it almost worksâthe headless browser doesn't show an icon, but the main
browser doesn't, either. I did a lot of searching and didn't find a very
nice solution. However I did find an ugly solution: Make a second copy of
TorBrowser.app called TorBrowser.app-headless that symlinks all files to
the first copy, all files except Info.plist. Set LSUIElement only in the
second copy's Info.plist. Set up meek-client-torbrowser to point to
TorBrowser.app-headless. To wit:
{{{
Contents/MacOS/TorBrowser.app/Contents:
-rw-r-----@ 1 david staff 5540 Dec 31 1999 Info.plist
drwxr-x---@ 25 david staff 850 Dec 31 1999 MacOS
-rw-r-----@ 1 david staff 8 Dec 31 1999 PkgInfo
drwxr-x---@ 5 david staff 170 Dec 31 1999 Resources
Contents/MacOS/TorBrowser.app-headless/Contents:
-rw-r-----@ 1 david staff 5572 May 11 13:07 Info.plist
lrwxr-xr-x 1 david staff 35 May 11 13:06 MacOS ->
../../TorBrowser.app/Contents/MacOS
lrwxr-xr-x 1 david staff 37 May 11 13:06 PkgInfo ->
../../TorBrowser.app/Contents/PkgInfo
lrwxr-xr-x 1 david staff 39 May 11 13:06 Resources ->
../../TorBrowser.app/Contents/Resources
}}}
This way is fairly dumb but it looks as if it will work if we can't think
of anything better. I looked for a way to start an app with an alternate
or override Info.plist file, and didn't find anything.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11429#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs