[haiku-bugs] Re: [Haiku] #12374: Opening apps (by mimetype?) need to prioritise system installation

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sun, 13 Sep 2015 09:17:23 -0000

#12374: Opening apps (by mimetype?) need to prioritise system installation
------------------------------------+----------------------------
Reporter: jessicah | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Application Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
------------------------------------+----------------------------
Changes (by bonefish):

* owner: nobody => axeld
* component: Kits/libtracker.so => Kits/Application Kit


Comment:

The logic for finding an app is in BRoster. [http://cgit.haiku-

os.org/haiku/tree/src/kits/app/Roster.cpp?id=2d6cf4f6e8e77e26ef30a90f56b9475794afdb79#n131
can_app_be_used()] could be enhanced to rule out running programs for the
wrong architecture. The functions from `<Architecture.h>` can help. That
would at least allow to avoid trying to run x86_64 executables on a gcc2
hybrid build.

That aside, there is also logic to select the best fitting from the
queried applications ([http://cgit.haiku-

os.org/haiku/tree/src/kits/app/Roster.cpp?id=2d6cf4f6e8e77e26ef30a90f56b9475794afdb79#n217
compare_queried_apps()]). It prefers newer app versions and executables
modified later. And for some reason, executables in the system server
directory.

I'm pretty sure the newer/later comparisons mimic BeOS's behavior and I
guess they seriously suck for (Haiku system) developers. A better strategy
might be to prefer apps installed in the standard directories (~/config
![/non-packaged]/apps, /system![/non-packaged]/apps) over ones that live
elsewhere.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12374#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: