Bug 68396
Summary: | Chromium DRT shouldn't show up in the Dock | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | abarth, dpranke, jamesr, schenney, tony |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Eric Seidel (no email)
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
You don't actually need the LD_RUNPATH_SEARCH_PATHS. That's for making DRT search for WebKit.framework in ./ before other directories. :)
Stephen Chenney
https://code.google.com/p/chromium/issues/detail?id=230631