[haiku-bugs] Re: [Haiku] #12298: Running shell commands from an app fails

  • From: "taos" <trac@xxxxxxxxxxxx>
  • Date: Tue, 11 Aug 2015 10:09:37 -0000

#12298: Running shell commands from an app fails
-------------------------+----------------------------
Reporter: humdinger | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: System | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------+----------------------------

Comment (by taos):

Replying to [comment:4 pulkomandy]:

Does our simutrans port already include a patch for this (a typical way
to patch this is adding {{{chdir(dirname(argv[0]))}}} in the main
function)?

I have no idea (there has been a long tradition of beos and/or haiku
specific stuff in the simutrans source code so it might be already
included). However, it still did work a month ago, when I got my patches
for compiling simutrans on PM-haiku upstreamed so that I could remove them
from the haikuports recipe. Is there a recent change in haiku that made it
necessary to include such a patch?

Simutrans usually should look in the home directory for its own folder
with screenshots, savegames, etc. When I last checked if the updated
simutrans recipe still produced a working simutrans package it used to
work even when started from Tracker. Now, it can't even save a game. I'm
not sure if that's because it looks for a directory that's not there (not
very probable, it used to just create its own folder in ~) or if it tries
to write to a directory that's read-only.

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

Other related posts: