Opened 10 hours ago

Last modified 8 hours ago

#19147 new bug

[HaikuDepot] no package name in open button

Reported by: mt Owned by: apl-haiku
Priority: normal Milestone: Unscheduled
Component: Applications/HaikuDepot Version: R1/beta5
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

When an application package is installed from Haikudepot, Haikudepot shows Open button and Uninstall button. However, Open button does not displays package name while Uninstall button displays package name.

I think PackageManager::_CreateOpenPackageAction() has problem.

https://cgit.haiku-os.org/haiku/tree/src/apps/haikudepot/packagemanagement/PackageManager.cpp#n221

Attachments (1)

haikudepot.png (33.4 KB ) - added by mt 10 hours ago.
Open button, no package name

Download all attachments as: .zip

Change History (2)

by mt, 10 hours ago

Attachment: haikudepot.png added

Open button, no package name

comment:1 by madmax, 8 hours ago

Given the trace, the DeskbarLink object contains a relative path from where the deskbar link is (for example, ../../../../apps/MyApp). When a BPath is initialized with that in _CreateOpenPackageAction, it is normalized from the working directory, and as there's no entry for that (unless you manually start HaikuDepot from a deskbar submenu directory), the path is unset.

Note: See TracTickets for help on using tickets.