EMU-driver icon indicating copy to clipboard operation
EMU-driver copied to clipboard

put control panel in PreferencePanes

Open Wouter1 opened this issue 9 years ago • 2 comments

I'd like to put the PreferencePane into the //System/Library/PreferencePanes

However nothign happens if I put it there

Wouter1 avatar May 27 '15 07:05 Wouter1

I messed around with the .plist

I renamed the panel to EMU.prefPane

plist now is this

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>BuildMachineOSBuild</key>
    <string>10K549</string>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleExecutable</key>
    <string>E-MU USB Audio Control Panel</string>
    <key>CFBundleIconFile</key>
    <string>EMU.icns</string>
    <key>CFBundleIdentifier</key>
    <string>com.creative-professional.E-MU USB Audio Control Panel</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>E-MU USB Audio Control Panel</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.50</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1.50.07</string>
    <key>DTCompiler</key>
    <string></string>
    <key>DTPlatformBuild</key>
    <string>10M2518</string>
    <key>DTPlatformVersion</key>
    <string>PG</string>
    <key>DTSDKBuild</key>
    <string>10K549</string>
    <key>DTSDKName</key>
    <string></string>
    <key>DTXcode</key>
    <string>0400</string>
    <key>DTXcodeBuild</key>
    <string>10M2518</string>
    <key>NSMainNibFile</key>
    <string>MainMenu</string>
    <key>NSPrincipalClass</key>
    <string>NSApplication</string>
    <key>NSPrefPaneIconFile</key>
    <string>SoundPrefIcon.tiff</string>
    <key>NSPrefPaneSearchParameters</key>
    <string>Sound</string>
</dict>
</plist>

The panel now appears as a proper panel inside the PreferencePanes folder

Wouter1 avatar May 27 '15 07:05 Wouter1

however it does not work. I get this in the logs

May 27 06:55:36 vlieland.local sudo[2983]:   wouter : TTY=ttys001 ; PWD=/System/Library/PreferencePanes ; USER=root ; COMMAND=/bin/mv E-MU USB Audio Control Panel.prefPane.prefPane.app/ EMU.prefPane
May 27 06:55:36 vlieland.local com.apple.IconServicesAgent[253]: main Failed to composit image for binding VariantBinding [0x75f] flags: 0x8 binding: BundleBinding [0xaed] URL: file:///System/Library/PreferencePanes/EMU.prefPane bundle identifier: (null).
May 27 06:55:36 vlieland.local quicklookd[2797]: Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0xe03] flags: 0x8 binding: BundleBinding [0xd03] URL: file:///System/Library/PreferencePanes/EMU.prefPane bundle identifier: (null) request size:64 scale: 1

and when I double click on the panel in the PreferencePanes folder I get

May 27 07:02:08 vlieland.local System Preferences[2971]: dlopen_preflight failed with dlopen_preflight(/System/Library/PreferencePanes/EMU.prefPane/Contents/MacOS/E-MU USB Audio Control Panel): no suitable image found.  Did find:
        /System/Library/PreferencePanes/EMU.prefPane/Contents/MacOS/E-MU USB Audio Control Panel: can't map unslidable segment __TEXT to 0x100000000 with size 0x1B000 for /System/Library/PreferencePanes/EMU.prefPane

Wouter1 avatar May 27 '15 07:05 Wouter1