Author Topic: Problem running Tizonia as a snap package  (Read 286 times)

Offline tizonia

  • Newly Subscribed
  • *
  • Posts: 3
  • Karma: 1
  • New To PeppermintOS
    • View Profile
Problem running Tizonia as a snap package
« on: April 01, 2020, 09:46:45 am »
Hi,

A user has raised an issue in Tizonia's bug tracker:
https://github.com/tizonia/tizonia-openmax-il/issues/703

He's trying to run Tizonia cloud music player and he has installed it via the Snap package.

Apparently, in Peppermint OS, the $XDG_CONFIG_HOME variable is defined in the snap environment:

Code: [Select]
$ snap run --shell tizonia               
bash: /usr/bin/dircolors: Permission denied
bash: /etc/bash_completion: Permission denied

juan@tizonia:/home/juan/Documents$ env | grep HOME
HOME=/home/juan/snap/tizonia/297
XDG_CONFIG_HOME=/home/juan/.config
juan@tizonia:/home/juan/Documents$


XDG_CONFIG_HOME is not defined in vanilla Ubuntu:
Code: [Select]
$ snap run --shell tizonia               
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

juan@ubuntu1804:/home/juan/Documents$ env | grep HOME
HOME=/home/juan/snap/tizonia/297
juan@ubuntu1804:/home/juan/Documents$

The fact that XDG_CONFIG_HOME  is defined and is pointing to a directory outside of the snap '$HOME' is causing problems to Tizonia in Peppermint OS. Apparently, the Snapcraft devs have discouraged the use of XDG_CONFIG_HOME in the snap environment, especially when it points to directories outside of the snap home.

https://forum.snapcraft.io/t/accessing-xdg-config-home-of-the-host/9780

I'm trying to find out if I should raise a bug in Peppermint OS's bug tracker.

Thanks!


Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2343
  • Karma: 616
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Problem running Tizonia as a snap package
« Reply #1 on: April 01, 2020, 11:05:51 am »
Hi tizonia,

To begin with: Team Peppermint do not encourage use of Snap packages. Just because the Snapcraft devs discourage use of XDG_CONFIG_HOME in the snap environment is no reason to file a bug report with the Peppermint bug tracker. On the contrary, I would submit a bug report with the Snapcraft devs.  ;)

Regards,

-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 2952
  • Karma: 335
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): PMVII, PMVIII, PMIX, PMX Respins
Re: Problem running Tizonia as a snap package
« Reply #2 on: April 01, 2020, 11:32:57 am »

A user has raised an issue in Tizonia's bug tracker:
https://github.com/tizonia/tizonia-openmax-il/issues/703
...
I'm trying to find out if I should raise a bug in Peppermint OS's bug tracker.

To second @Slim.Fatz's comment, all bugs related to this particular snap belong on their site, not ours.

Furthermore, while #teampeppermint doesn't prevent anyone from installing flatpaks & snaps on their own systems, it is likely best that any issues resulting from flatpak & snap installation are best reported to their respective owners, no matter which distro they're creating problems.


 ;)

spence
PeppermintOS 8,9 & 10 Respins currently installed  on:
'16 Antec Aria rebuild
PMX Respin on '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline tizonia

  • Newly Subscribed
  • *
  • Posts: 3
  • Karma: 1
  • New To PeppermintOS
    • View Profile
Re: Problem running Tizonia as a snap package
« Reply #3 on: April 01, 2020, 02:29:56 pm »
Quote
To begin with: Team Peppermint do not encourage use of Snap packages.

 :-\  Uhm, maybe I won't encourage using Tizonia on Peppermint OS  :P

Just joking.

Tizonia has nothing to do with the fact that XDG_CONFIG_HOME is defined in the snap environment in Peppermint OS but not on Ubuntu. I'm trying to find out why the divergence.

I've posted the same question in the Snapcraft forum:
https://forum.snapcraft.io/t/xdg-config-home-is-defined-in-the-snap-environment/16355

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 2952
  • Karma: 335
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): PMVII, PMVIII, PMIX, PMX Respins
Re: Problem running Tizonia as a snap package
« Reply #4 on: April 01, 2020, 07:27:04 pm »
There have been many behind the scenes discussions about why #teampeppermint feels flatpaks and snaps are security risks best avoided. That said, we don't prevent PeppermintOS users from installing whatever they want on their systems. I'm not a builder/coder/dev so I have no idea what you are referring to? Perhaps this will help?

https://superuser.com/questions/365847/where-should-the-xdg-config-home-variable-be-defined

 ;)
spence
PeppermintOS 8,9 & 10 Respins currently installed  on:
'16 Antec Aria rebuild
PMX Respin on '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline tizonia

  • Newly Subscribed
  • *
  • Posts: 3
  • Karma: 1
  • New To PeppermintOS
    • View Profile
Re: Problem running Tizonia as a snap package
« Reply #5 on: April 02, 2020, 07:39:06 am »
OK,

I've got a response from the Snapcraft developers and they suggested to raise a bug in Snapd.

So here is the link to that defect in case someone else encounters this particular problem and has an interest in the status:
https://bugs.launchpad.net/snapd/+bug/1870335