[Bug 156922] New: dock icons are lost in some cases when applications fork

Benjamin Reed ranger at befunk.com
Tue Jan 29 17:44:36 CET 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=156922         
           Summary: dock icons are lost in some cases when applications fork
           Product: kdelibs
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: kdecore
        AssignedTo: kdelibs-bugs kde org
        ReportedBy: ranger befunk com


Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.0.1 i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) 
OS:                OS X

When an application is started from the command-line (or exec) instead of through the finder, and it is an application which forks (KUniqueApplication, or in some cases, kdeinit4 apps), it does not get a dock icon.

I suspect it is because we need to fork-and-reexec when forking, unlike on linux/etc. where there is no issue continuing CoreFoundation code after a fork.

It might be as simple as re-registering as a GUI app or re-setting the dock icon, or it may be something deeper; we need to investigate more.

Potential fixes:
http://developer.apple.com/documentation/Carbon/Reference/Dock_Manager/Reference/reference.html#//apple_ref/c/func/RestoreApplicationDockTileImage
http://www.cocoadev.com/index.pl?TransformProcessType


More information about the Kdelibs-bugs mailing list