/app is an alias for that long path when you're running inside the flatpak shell, see https://wiki.gnucash.org/wiki/Flatpak#Using_Command_Line_Tools. Unless you also run a browser in the same flatpak shell--installing the browser with flatpak won't work, that will create a different container--the browser can't see the alias. I don't know offhand if there's a way for GnuCash to tell that it's running inside a flatpak or to get the outside-the-flatpak path to /app, but even if it could the URI would get invalidated the next time you update the GnuCash flatpak.
Regards, John Ralls > On Jun 12, 2023, at 1:10 PM, rsbrux via gnucash-user > <gnucash-user@gnucash.org> wrote: > > Thanks for the tiüp, Vincent, but these things don't add up in the flatpak > installation. > > In the Help - About dialog, GNC_DATA is shown as "/app/share/gnucash", which > is also the path used in the HTML file. > > However, clicking on the link leads to > "/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/511cf18127561c55b5999121c6b301ca1e90d6cc988a00701257606df7fae86f/files/share/gnucash/" > which does, in fact, contain a sudirectory "chartjs", which in turn contains > both "Chart.bundle.min.js" and "Chart.bundle.js". > > Evidently the HTML generation doesn't take the possibility of a flatpak > installation into account. I suppose I should file a bug for this, but I > wouldn't know where. > > Thnaks for your help! > > On 12.06.23 20:20, Vincent Dawans wrote: >> Not that it might solve your underlying issue, but here is a reliable way to >> locate Chart.bundle.min.js assuming it was installed correctly with the rest >> of GC. This should work on any OS. >> >> 1. Open GC and go in menu Help - About >> 2. In that dialog window, look for the entry for GNC_DATA. It's the last one >> in the list. It should point to a directory path, for instance on Windows >> C:\Program Files (x86)\gnucash\share\gnucash but it will be different on >> ubuntu, etc. >> 3. Navigate to that directory using whatever means your OS gives you to do >> that (File Manager, console, etc). In that directory that GNC_DATA is >> pointing to, you should find a subdirectory called chartjs. That is where >> Chart.bundle.min.js should be located and if any html file is pointing to it >> that ia what the path should be. >> >> On Mon, Jun 12, 2023 at 11:03 AM rsbrux via gnucash-user >> <gnucash-user@gnucash.org> wrote: >> >> > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone >> <adrien.montele...@lusfiber.net> wrote: >> >Is this a completely custom report or just a saved configuration? >> If completely custom, you may want to try the -dev list. >> >> This is a report I assembled from the options available in the GC >> GUI (like the pie chart you successfully tested). >> Unfortunately, I am not competent to use the programming >> facilities behind GC's report generation. >> >> >> > On Jun 11, 2023, John Ralls <jra...@ceridwen.us> wrote: >> >It's most likely a javascript problem. Open the javascript >> console in your browser and see if there's an error finding >> Chart.bundle.min.js. >> >The correct location is >> <prefix>/share/gnucash/chartjs/Chart.bundle.min.js where <prefix> >> is where GnuCash is installed: /usr for a Linux package manager >> installation, /Applications/Gnucash.app/Contents/Resources for a >> macOS bundle, C:\Program Files (x86)\gnucash for Windows, etc. >> > >> >You can fix the link by editing the html file in your favorite >> text editor. >> >> I have tried opening the exported HTML reports in Firefox on >> Ubuntu and in Edge and Firefox on Windows. Although the browser >> consoles show errors, I don't see any pertaining to " >> Chart.bundle.min.js", nor do I find any critical errors pertinent >> to the report content. >> The new HTML reports are looking for Chart.bundle.min.js in >> /app/share/gnucash/chartjs/, but no such directory exists on the >> Ubuntu system where GnuCash is installed. In fact, there isn't >> even an /app/ directory. Perhaps this is due to GC being >> installed as a flatpak. >> Chart.bundle.min.js does not seem to exist on either system, so I >> edited the HTML as you suggested, replacing the local path with >> "https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js" >> but this did not improve matters. >> However, my previously saved HTML reports from GC 2.xx also don't >> display correctly, even though they contain no references to >> Chart.bundle.min.js. This suggests a more fundamental problem and >> reveals my presumption that the HTML files could be used as >> archives as naive. >> I have a previously saved PDF file, which is, of course still >> usable. This will be my method going forward, although the lack >> of a "scale to fit" option in the GC print dialog requires a bit >> of trial and error to get a satisfactory PDF. >> >> Many thanks to both of you for your support! >> >> _______________________________________________ >> gnucash-user mailing list >> gnucash-user@gnucash.org >> To update your subscription preferences or to unsubscribe: >> https://lists.gnucash.org/mailman/listinfo/gnucash-user >> ----- >> Please remember to CC this list on all your replies. >> You can do this by using Reply-To-List or Reply-All. >> > _______________________________________________ > gnucash-user mailing list > gnucash-user@gnucash.org > To update your subscription preferences or to unsubscribe: > https://lists.gnucash.org/mailman/listinfo/gnucash-user > ----- > Please remember to CC this list on all your replies. > You can do this by using Reply-To-List or Reply-All. _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.