tizonia / tizonia-openmax-il

Command-line cloud music player for Linux with support for Spotify, Google Play Music, YouTube, SoundCloud, TuneIn, iHeartRadio, Plex servers and Chromecast devices.
https://tizonia.org
GNU Lesser General Public License v3.0
1.69k stars 87 forks source link

MPRIS v2 fails with Tiz::DBus::Error in Tizonia 0.22.0 (Snap) #780

Open lofidevops opened 3 years ago

lofidevops commented 3 years ago

Issue

Description

When I enable MPRIS in Tizonia 0.22.0 (Snap) I get an Tiz::DBus::Error error message.

Steps to Reproduce

  1. Confirm Tizonia (Snap) works under normal conditions
  2. Modify $HOME/snap/tizonia/current/.config/tizonia/tizonia.conf
  3. Set mpris-enabled = false
  4. Start Tizonia

Expected behavior:

Tizonia starts as normal. MPRIS interface is available, for example through tizonia-remote

Actual behaviour:

Immediate failure with the following error message:

tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

terminate called after throwing an instance of 'Tiz::DBus::Error'
  what():  An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.195" (uid=1000 pid=12527 comm="/snap/tizonia/539/usr/bin/tizonia --youtube-audio-" label="snap.tizonia.tizonia (enforce)") interface="org.freedesktop.DBus" member="RequestName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
/snap/tizonia/539/bin/tizonia-snap-wrapper.sh: line 25: 12527 Aborted                 (core dumped) $SNAP/usr/bin/tizonia "$@"

Reproduces how often:

Every time.

Versions

Use the information obtained from tizonia --debug.

tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

Dependency Info:

* [Boost 1_65_1]
* [TagLib 1.11.1]
* [MediaInfoLib - v17.12]
* [gmusicapi 13.0.0 ]
* [soundcloud 0.5.0 ]
* [youtube-dl 2021.6.6 ]
* [pafy 0.5.5 ]
* [pycountry 20.7.3 ]
* [titlecase 2.2.0 ]
* [pychromecast 9.2.0 ]
* [plexapi 4.6.1 ]
* [spotipy 2.18.0 ]
* [fuzzywuzzy 0.18.0 ]
* [eventlet 0.31.0 ]
* [python-Levenshtein 0.12.2 ]
* [joblib 1.0.1 ]

System Info:

Linux@5.8.0-63-generic-#71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021
NAME="Ubuntu Core"
VERSION="18"
ID=ubuntu-core
PRETTY_NAME="Ubuntu Core 18"
VERSION_ID="18"
HOME_URL="https://snapcraft.io/"
BUG_REPORT_URL="http://bugs.launchpad.net/snappy/"

Installation Method Used

Snap package, installed with --classic option. I have tried both stable and edge versions (both point to 0.22.0).

Additional Information

None (but please ask if there are details I can add).

codeasashu commented 3 years ago

Same here. In my case, I am using docker image. My error message is:

tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

terminate called after throwing an instance of 'Tiz::DBus::Error'
  what():  Unable to autolaunch a dbus-daemon without a $DISPLAY for X11