dump1090 icon indicating copy to clipboard operation
dump1090 copied to clipboard

gmap.html not found, if current dir is not dump1090's dir

Open x-f opened this issue 12 years ago • 8 comments

If I launch dump1090 from my homedir (~/sw/dump1090/dump1090 --net), it cannot load the "gmap.html" file and displays message: "Error opening HTML file: No such file or directory", when the address is accessed by web browser. "/data.json" is accessible though. If I change the current dir to dump1090's one and then launch it, it works as expected.

x-f avatar Feb 01 '13 09:02 x-f

Yes. There should be a configuration option to locate gmap.html or at least it should look at current dir and possibly /usr/share/dump1090.

nunojpg avatar Mar 18 '13 12:03 nunojpg

Other suggestion: search for gmap.html in this order:

  • in the directory where the binary is located.
  • in the current working directory

@nunojpg /usr/share/dump1090 makes sense only if you have manually installed it there. I guess looking for this location would make sense if the package is installed through your distribution's repos (as I'd like to package it for Debian), but there could be so many different places where the user decides to place this code (/opt, /home, etc.) that it doesn't make it practical to have the binary search in all these places by default.

e2jk avatar Jun 09 '13 09:06 e2jk

Then the path should be configureable by a make-flag on the commandline at compile-time.

asdil12 avatar Jun 09 '13 15:06 asdil12

Anything new about this issue?

iquadtree avatar Nov 28 '13 15:11 iquadtree

@iquadtree Have tried this fork: https://github.com/bdavenport/dump1090

terribium avatar Nov 28 '13 15:11 terribium

Configuring paths at compile time is never a good thing, basically... there should be an argument to pass IMHO, defaulting to current directory.

antirez avatar Nov 28 '13 15:11 antirez

@terribl, that fork doesn't work for me. According to strace it tries to find public_html directory inside the current one and read gmap.html file:

stat("./public_html/gmap.html", 0x7fffef972290) = -1 ENOENT (No such file or directory)

and then it just reports that file was not found.

iquadtree avatar Nov 28 '13 20:11 iquadtree

Any news on this one?

ricsim avatar May 27 '15 09:05 ricsim