accessing /etc/issue from flatpak

Winnie Poon winniepoon_home at hotmail.com
Thu Aug 22 18:12:58 UTC 2019


I added the --filesystem=host, but i coudlnt' find the /run/host path?    Is it under the "build-dir" directory after flatpak-builder generates it?

I see these folders under the build directory:

files  metadata  var

under the var/run, there's no host

Am i looking at the wrong place?


________________________________
From: Ryan Gonzalez <rymg19 at gmail.com>
Sent: August 21, 2019 8:20 PM
To: Winnie Poon <winniepoon_home at hotmail.com>
Cc: flatpak <flatpak at lists.freedesktop.org>
Subject: Re: accessing /etc/issue from flatpak

I think if you add --filesystem=host, you can access /run/host/etc.

On Wed, Aug 21, 2019, 6:46 PM Winnie Poon <winniepoon_home at hotmail.com<mailto:winniepoon_home at hotmail.com>> wrote:
Hi,

i'm new to sandboxing using flatpak.

For the code that i'm working on, i need to access the /etc/issue or /etc/redhat-release to get the system specific info in the cmake process.   Obviously in the sandbox, the /etc is blacklisted.    Could anyone suggest a good way to handle this?  Is there something equivalent in the flatpak environment to obtain system information?    Thanks!

Winnie
_______________________________________________
Flatpak mailing list
Flatpak at lists.freedesktop.org<mailto:Flatpak at lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/flatpak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20190822/9ac6439f/attachment.html>


More information about the Flatpak mailing list