<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p style="color: #777777;">
<a href="https://invent.kde.org/tfry">Thomas Friedrichsmeier</a>
<a href="https://invent.kde.org/education/rkward/-/issues/13#note_436361">commented</a>:
</p>
<div class="md" style="">
<p dir="auto"><a href="https://github.com/flathub/flathub/pull/3042" rel="nofollow noreferrer noopener" target="_blank">https://github.com/flathub/flathub/pull/3042</a></p>
<p dir="auto">On hold for now, because executing binaries outside the sandbox fails due to problems with the paths they see: <a href="https://docs.flatpak.org/en/latest/sandbox-permissions.html" rel="nofollow noreferrer noopener" target="_blank">https://docs.flatpak.org/en/latest/sandbox-permissions.html</a> (e.g. gcc would be at /var/run/host/usr/bin, and can be started, but will fail as soon as it looks for any other files in /usr; same for R).</p>
<p dir="auto">Plan to work around this:</p>
<ul dir="auto">
<li>Create a chroot-wrapper to start external R. The chroot dir (inside /app, I guess) will have the standard paths mapped in.</li>
<li>Start system-installed R inside that chroot.</li>
<li>Whenever passing paths between frontend and backend, make sure to map them as appropriate (this is going to be quite a hassle, but is a long-term-plan anyway, in order to allow remote R backends, for instance).</li>
<li>R will no longer be bundled inside the flatpak, after this, but be an external dependency (if allowed)</li>
</ul>
<hr>
<p dir="auto">For reference:
flatpak cheat-cheet: <a href="https://develop.kde.org/docs/build/flatpak/publishing/" rel="nofollow noreferrer noopener" target="_blank">https://develop.kde.org/docs/build/flatpak/publishing/</a></p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://invent.kde.org/education/rkward/-/issues/13#note_436361">view it on GitLab</a>.
<br>
You're receiving this email through KDE Activity Filter (see sysadmin/activityfilter on invent.kde.org)
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://invent.kde.org/education/rkward/-/issues/13#note_436361"}}</script>


</p>
</div>
</body>
</html>