Bug 68396 - Chromium DRT shouldn't show up in the Dock
Summary: Chromium DRT shouldn't show up in the Dock
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 15:08 PDT by Eric Seidel (no email)
Modified: 2013-04-11 15:22 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2011-09-19 15:08:46 PDT
Very easy to make it not do so.  The trouble is just making gyp do the right thing.

There are two easy ways to do this:

1.  Make it not be a mac_bundle=1 (like how Apple Mac DRT is), and instead embed all the fonts in the data section:
OTHER_LDFLAGS = -sectcreate __DATA Ahem qt/fonts/AHEM____.TTF -sectcreate __DATA WeightWatcher100 fonts/WebKitWeightWatcher100.ttf -sectcreate __DATA WeightWatcher200 fonts/WebKitWeightWatcher200.ttf -sectcreate __DATA WeightWatcher300 fonts/WebKitWeightWatcher300.ttf -sectcreate __DATA WeightWatcher400 fonts/WebKitWeightWatcher400.ttf -sectcreate __DATA WeightWatcher500 fonts/WebKitWeightWatcher500.ttf -sectcreate __DATA WeightWatcher600 fonts/WebKitWeightWatcher600.ttf -sectcreate __DATA WeightWatcher700 fonts/WebKitWeightWatcher700.ttf -sectcreate __DATA WeightWatcher800 fonts/WebKitWeightWatcher800.ttf -sectcreate __DATA WeightWatcher900 fonts/WebKitWeightWatcher900.ttf
LD_RUNPATH_SEARCH_PATHS = "@loader_path/.";

2.  Define LSUIElement=1 in the (currently non-existant) Info.plist file in the bundle.
http://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW1

#2 is probably easier, but slightly less slick than #1.
Comment 1 Eric Seidel (no email) 2011-09-19 15:09:35 PDT
You don't actually need the LD_RUNPATH_SEARCH_PATHS.  That's for making DRT search for WebKit.framework in ./ before other directories. :)