deb2snap icon indicating copy to clipboard operation
deb2snap copied to clipboard

Hide selected paths from the system

Open probonopd opened this issue 7 years ago • 3 comments

If using this on Qt applications bundled together with a certain Qt version as as a snap, then the application may try to load the Qt from the sytem which does not match the Qt in the snap, resulting in errors like

Cannot mix incompatible Qt library (version 0x40807) with this library (version 0x40806)
Aborted

Is there a way to tell the preloaded library to NOT use (i.e., hide) certain files/directories (and their subdirectories) from the base system (e.g., /usr/lib/x86_64-linux-gnu/qt5/)? I would basically like to pretend that this directory does not exist in the OS (only in the snap).

Something like

export SNAPPY_PRELOAD_HIDE="/usr/lib/x86_64-linux-gnu/qt5/:/usr/lib/x86_64-linux-gnu/qt4/"

Please let me know if my question is clear. Thanks!

probonopd avatar Feb 22 '17 17:02 probonopd

I see what you're saying, but I don't really want to improve deb2snap any more than absolutely required, if that. It is wholly replaced by snapcraft these days.

It may not even work in the simple cases anymore? I haven't used it in a long time.

mikix avatar Feb 23 '17 14:02 mikix

So this project is no longer in active development? Could you imagine releasing it under the permissive MIT license?

probonopd avatar Feb 23 '17 16:02 probonopd

It's Canonical's copyright to change, not mine. Their policy is GPL3 unless good reason. I don't see why MIT would be more reasonable here.

mikix avatar Feb 24 '17 03:02 mikix