A recent change in Haiku made be_roster launch apps with argv[0] set to the symlink, e.g. the Deskbar symlink. @diversys says this breaks Qt apps. The problem likely is, as per Qt documentation:
Warning: On Linux, this function will try to get the path from the /proc file system. If that fails, it assumes that argv[0] contains the absolute file name of the executable. The function also assumes that the current directory has not been changed by the application.
So we need a different implementation for Haiku here, using get_image_info to get the application image, and then its path.
A recent change in Haiku made be_roster launch apps with argv[0] set to the symlink, e.g. the Deskbar symlink. @diversys says this breaks Qt apps. The problem likely is, as per Qt documentation:
So we need a different implementation for Haiku here, using
get_image_info
to get the application image, and then its path.