Ubuntu snap packaging with Qt: fonts missing

I have binary and all resolved Qt dependencies packaged in tar.gz. I am using next yaml file for snap:

name: sample_name_lol_1 base: core18 version: '1.0.0' summary: sample_summary_lol_2 description: |   sample_desc_lol_3  grade: devel confinement: devmode  parts:   sample_name_lol_1:     plugin: dump     source: MyApp.tar.gz     stage-packages: [       ffmpeg,       x264,       x265,       libopencv-core-dev,       libopencv-imgproc-dev,       libopencv-calib3d-dev,       libblas-dev,       liblapack-dev,       libfontconfig1-dev,       fonts-freefont-ttf,       ttf-ubuntu-font-family     ]  apps:     MyApp:         command: MyApp         environment:           LD_LIBRARY_PATH: $  LD_LIBRARY_PATH:$  SNAP/usr/lib/x86_64-linux-gnu/blas:$  SNAP/usr/lib/x86_64-linux-gnu/lapack 

Normal application run (say from regular unpacking tar.gz) would give me information about all fonts available on the system. However snap run (sample_name_lol_1.MyApp) won’t see system fonts, only few of them (only 3 to be precise – sans, sans-serif, monospace). I found path after installation, /snap/sample_name_lol_1/x1/usr/share/fonts and /snap/sample_name_lol_1/x1/etc/fonts. Those places are read-only and I can’t figure out, what exactly should be done, so Qt application will able to see at lease standard Ubuntu font.

VLC configuration file on Ubuntu 18.10 when installed with snap

I have installed vlc with snap on Ubuntu 18.10, and the result of my search on the internet says that the configuration file for vlc should be located in ~/.config/vlc, but for me, there’s no such directory on my system, so I was wondering where can I find the configuration file(s) for vlc in case I want to have a backup?

Thank you

Running a snap installed side-by-side/parallel to a Debian package?

I’m on Ubuntu 18.04, and the default VLC here is:

$   vlc --version VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332) ... $   which vlc /usr/bin/vlc 

I want to keep this version, and then try out a nightly via snap. So I tried:

$   sudo snap install --channel=edge vlc vlc (edge) 4.0.0-dev-5939-gee31d91 from VideoLAN✓ installed $   snap list  Name                  Version                  Rev   Tracking  Publisher    Notes core                  16-2.36.3                6130  stable    canonical✓   core ... vlc                   4.0.0-dev-5939-gee31d91  767   edge      videolan✓    - 

Now I know I have this dev version of vlc installed, and it is in my system here:

$   ls -la /snap/bin/ total 8 drwxr-xr-x  2 root root 4096 Jan  4 09:25 . drwxr-xr-x 13 root root 4096 Jan  4 09:25 .. ... lrwxrwxrwx  1 root root   13 Jan  4 09:25 vlc -> /usr/bin/snap 

But /snap/bin/vlc is a symlink (apparently) to /usr/bin/snap, so when I run it:

$   /snap/bin/vlc  cannot change current working directory to the original directory: No such file or directory 

So when I type vlc, I still get the old Debian version, which is how I want it.

But how do I run the snap version of VLC in this case?

fighter sharpshooter, snap shot and extra attack interaction

i was reading trough the fighter archtypes and came across the sharpshooter unearthed arcana archtype.

the level 18 trait is:

Snap Shot

Starting at 18th level, if you take the Attack action on your first turn of a combat, you can make one additional ranged weapon attack as part of that action.

at level 18 fighter you also have acces to 2 extra attacks.

how does these traits interact?

could i do:

normal attack + extra attack + extra attack + snap shot?

or is it:

normal attack + snap shot + extra attack + snap shot + extra attack + snap shot?

Why removing package by `snap` leaves a symbolic link?

I installed docker with snap (i.e. $ snap install docker) – but it causes some issues, and it is not recommended. So I decided to remove docker by the command:

$ snap remove docker

It removes the package properly, but now I have a symbolic link in my home folder:

/home/user +-- snap | +-- docker | +-- current

Where current is symbolic link, that points to 321. I have no idea what it is.

Why is this happening?

enter image description here