For the reports I use several additional JS files. The report template engine includes script files either by absolute path or from the res folder. But for the new Flatpak version (1.7.0) the absolute path is very complex and will be changed in the next installation. For example, this is the absolute path to the res folder on my desktop
Code: Select all
/var/lib/flatpak/app/org.moneymanagerex.MMEX/x86_64/stable/74855e69d6e88cba4240daf947206442b7f57757d6342e4e636d43e9208d8bbe/files/share/mmex/res/
Code: Select all
<head>
<meta charset="UTF-8" />
<meta http - equiv = "Content-Type" content = "text/html" />
<title><TMPL_VAR REPORTNAME></title>
<link href="master.css" rel="stylesheet">
<script src="<TMPL_VAR ATTACHMENTSFOLDER>string.polyfill.js"></script>
<script src="ChartNew.js"></script>
<script src="<TMPL_VAR ATTACHMENTSFOLDER>ChartNew_format.js"></script>
</head>
Or can anyone suggest a better solution?