If I understand it correctly, CQtDeployer compiles a qmake project and creates installers for Windows and Linux? Some of the applications require libraries which are available on the host system and you want access to them in order to put them in the installer? Is this correct?
You might be able to use the system-backup interface, but that will make the libraries available in the directory /var/lib/snapd/hostfs so you will need some way to translate the paths you get from users.
@galgalesh
Thanks
yes, you understood me correctly.
I like this solution, but it makes me greatly complicate the program logic.
maybe there are other solutions?
While there are interfaces that you can apply to access those locations it is not a good idea to use libraries from the host system. The whole point of Snap packages is that they are self-contained and independent of the host setup. If you loaded a library from the host there is no guarantee that it is compatible with your application.
@lucyllewy
CQtDeployer does not need system libraries.
CQtDeployer is utility for deploying c++ applications. So in some cases, the utility needs to copy the system libraries to the distribution of the user application.
I am very negative about the classic mode, it’s not safe. If there would be something like classic mode, but limited read-only access to system files. That would be the perfect solution.
but it only provides access to the specified files and not the file system,
If you could offer access to the specified folder recursively in this way, that would be ideal.