[Pkg-utopia-maintainers] Bug#885976: flatpak: fails to run on symlinked path locations

Ritesh Raj Sarraf rrs at debian.org
Tue Jan 2 05:28:38 UTC 2018


On Mon, 2018-01-01 at 11:20 +0000, Simon McVittie wrote:
> On Mon, 01 Jan 2018 at 10:51:13 +0530, Ritesh Raj Sarraf wrote:
> > It seems flatpak has very fragile path assumptions. I have a basic
> > setup
> > with 2 HDDs, where in I have my /var/tmp/ as a symlink pointing to
> > a
> > secondary location. This shouldn't be tagged an unusual setup.
> 
> I would recommend preferring bind-mounts over symlinks when
> redirecting
> paths that are significant to the OS to some other drive. Flatpak is
> not
> the only tool that benefits from this: anything that uses a
> rearranged
> view of the filesystem (mostly container technologies) will be
> simpler
> and more reliable if it can rely on directories being directories.
> 

Thanks for the suggestion. The Skype flatpak worked after switch to a
bind mount.

> > bwrap: Can't make symlink at /var/tmp: File exists
> 
> This is trying to create a symlink as the sandbox's /var/tmp, not in
> your real system's filesystem namespace; but Flatpak always creates a
> /var/tmp directory anyway, so that symlink creation fails.
> 
> What's in
> ~/.local/share/flatpak/app/${app_id}/current/active/metadata
> or /var/lib/flatpak/app/${app_id}/current/active/metadata for the app
> in question?
> 

rrs at priyasi:~$ cat
~/.local/share/flatpak/app/com.skype.Client/current/active/metadata  
[Application]
name=com.skype.Client
runtime=org.freedesktop.Platform/x86_64/1.6
sdk=org.freedesktop.Sdk/x86_64/1.6
command=skype

[Context]
shared=network;ipc;
sockets=x11;pulseaudio;
devices=all;
filesystems=xdg-download;home:ro;

[Session Bus Policy]
org.kde.StatusNotifierWatcher=talk
org.freedesktop.secrets=talk
org.gnome.GConf=talk
org.gtk.Notifications=talk
org.freedesktop.Notifications=talk

[System Bus Policy]
org.freedesktop.NetworkManager=talk
org.bluez=talk

[Environment]
XDG_CURRENT_DESKTOP=Unity

[Extra Data]
name=skypeforlinux-64.deb
checksum=2ad7bea3cb42735d140df48e3ca15c3dea31b91452aa45298c2ace40f67548
f9
size=72297826
uri=https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_
8.13.76.4_amd64.deb

[Extension com.skype.Client.Debug]
directory=lib/debug
autodelete=true
no-autodownload=true
10:55 ♒♒♒   ☺    


>     smcv
-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20180102/7a9145ff/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list