Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error 
@ 2020-04-08  6:26 flexibeast
  2020-04-10 20:47 ` ericonr
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: flexibeast @ 2020-04-08  6:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

New issue by flexibeast on void-packages repository

https://github.com/void-linux/void-packages/issues/20744

Description:
Installing and running `cmus` from the console results in an error message: "an error occured while initializing MPRIS". [This line of the cmus source](https://github.com/cmus/cmus/blob/d1290d50f9f7585c43b9e1326c0d6d1e0b4583f6/mpris.c#L491) suggests that `cmus` requires the presence of a session bus (cf. [the documentation for `sd_bus_default_user`](https://www.freedesktop.org/software/systemd/man/sd_bus_open.html)), and indeed, running `dbus-launch /bin/cmus` results in no error being reported on startup.

How should this be addressed? Should the `cmus` package be modified, or should upstream not be assuming the presence of a session bus?

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
@ 2020-04-10 20:47 ` ericonr
  2020-04-11  0:34 ` flexibeast
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2020-04-10 20:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-612209820

Comment:
Do you have the dbus service enabled?

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
  2020-04-10 20:47 ` ericonr
@ 2020-04-11  0:34 ` flexibeast
  2020-05-06  5:43 ` ericonr
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: flexibeast @ 2020-04-11  0:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

New comment by flexibeast on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-612280391

Comment:
This issue doesn't affect me personally; it was reported by someone on #voidlinux, who encountered it after trying to run cmus from the console on a fresh Void install.

i found that enabling the `dbus` service made no difference, which makes sense to me: to make use of the system bus, the cmus code would need to be calling `sd_bus_default_system` instead of `sd_bus_default_user`.

My *inclination* is to say this is an upstream issue, but i'm interested to know how Void handles cases like this - whether the procedure is to try to work around the problem in the packaging, or whether users should be told to raise the issue with upstream.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
  2020-04-10 20:47 ` ericonr
  2020-04-11  0:34 ` flexibeast
@ 2020-05-06  5:43 ` ericonr
  2020-05-11  4:41 ` galmio
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2020-05-06  5:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-624452871

Comment:
Coming back to this, I thik the default procedure is to report the issue and seek a fix. If the fix is deemed important and has been accepted by upstream, we can try to patch it before a release.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (2 preceding siblings ...)
  2020-05-06  5:43 ` ericonr
@ 2020-05-11  4:41 ` galmio
  2020-05-11  4:42 ` galmio
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: galmio @ 2020-05-11  4:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

New comment by galmio on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-626465617

Comment:
Same issue with `cmus v.2.8.0`. 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (3 preceding siblings ...)
  2020-05-11  4:41 ` galmio
@ 2020-05-11  4:42 ` galmio
  2020-05-11  4:58 ` flexibeast
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: galmio @ 2020-05-11  4:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

New comment by galmio on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-626465617

Comment:
Same issue with `cmus v2.8.0`. 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (4 preceding siblings ...)
  2020-05-11  4:42 ` galmio
@ 2020-05-11  4:58 ` flexibeast
  2020-05-11 16:06 ` galmio
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: flexibeast @ 2020-05-11  4:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

New comment by flexibeast on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-626469690

Comment:
@galmio: Could you please open an issue with upstream about this? My personal feeling is that it's reasonable for people to want to run `cmus` in a console without a session bus (although of course, that would mean the MPRIS functionality will not be available).

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (5 preceding siblings ...)
  2020-05-11  4:58 ` flexibeast
@ 2020-05-11 16:06 ` galmio
  2020-05-12 11:37 ` flexibeast
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: galmio @ 2020-05-11 16:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

New comment by galmio on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-626797380

Comment:
@flexibeast: I can open the issue but I would rather ask for an implementation of `sb_bus_default_system` as you mentioned than just merely dropping MPRIS functionality, since it's what I've been CMUS with in status bars in other distributions.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (6 preceding siblings ...)
  2020-05-11 16:06 ` galmio
@ 2020-05-12 11:37 ` flexibeast
  2020-08-28  2:05 ` shoober420
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: flexibeast @ 2020-05-12 11:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 309 bytes --]

New comment by flexibeast on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-627289060

Comment:
@galmio: i'm not a `cmus` user myself, so if you think that's best, sure. :-) Let me know once you've opened that issue, so i can close this as "not a Void issue".

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (7 preceding siblings ...)
  2020-05-12 11:37 ` flexibeast
@ 2020-08-28  2:05 ` shoober420
  2020-08-28  2:05 ` shoober420
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: shoober420 @ 2020-08-28  2:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 423 bytes --]

New comment by shoober420 on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-682283338

Comment:
I ran into this big as well when switching over to Artix Linux. Using Arch with systemd worked fine and a session bus was started automatically. When using s6 and runit, a session bus is not created automatically. I opted to disable MPRIS with the `:set mpris=false` in config.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (8 preceding siblings ...)
  2020-08-28  2:05 ` shoober420
@ 2020-08-28  2:05 ` shoober420
  2020-09-30  1:12 ` ap4y
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: shoober420 @ 2020-08-28  2:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

New comment by shoober420 on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-682283338

Comment:
I ran into this big as well when switching over to Artix Linux. Using Arch with systemd worked fine and a session bus was started automatically. When using s6 and runit, a session bus is not created automatically. I opted to disable MPRIS with the `:set mpris=false` command.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (9 preceding siblings ...)
  2020-08-28  2:05 ` shoober420
@ 2020-09-30  1:12 ` ap4y
  2020-09-30  2:34 ` shoober420
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: ap4y @ 2020-09-30  1:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

New comment by ap4y on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-701101406

Comment:
In my case I was starting x session via `dbus-launch --sh-syntax --exit-with-session` yet was still getting `mpris` related errors. This one took me a while to figure out, but the problem is that `DBUS_SESSION_BUS_ADDRESS` was not exposed in my environment. I checked what gentoo does to fix this, since my gentoo machine with a  similar setup doesn't have this error, and apparently `dbus` package adds [80-dbus](https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/dbus/files/80-dbus) under `/etc/X11/xinit/xinitrc.d` when `X` use flag is enabled.  @ericonr I wonder if we should do the same for `dbus-x11` and `dbus-elogind-x11`? I'm happy  to send a patch for this.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (10 preceding siblings ...)
  2020-09-30  1:12 ` ap4y
@ 2020-09-30  2:34 ` shoober420
  2021-02-28  1:36 ` ericonr
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: shoober420 @ 2020-09-30  2:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

New comment by shoober420 on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-682283338

Comment:
I ran into this bug as well when switching over to Artix Linux. Using Arch with systemd worked fine and a session bus was started automatically. When using s6 and runit, a session bus is not created automatically. I opted to disable MPRIS with the `:set mpris=false` command.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (11 preceding siblings ...)
  2020-09-30  2:34 ` shoober420
@ 2021-02-28  1:36 ` ericonr
  2022-04-16  2:02 ` github-actions
  2022-04-30  2:13 ` [ISSUE] [CLOSED] " github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2021-02-28  1:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-787217075

Comment:
@ap4y the script can probably be improved a bit, but idk how it interacts with people who have their own setup for starting a bus. Maybe we can create a `xorg-dbus` package containing it? Not sure it's ideal, but it'd at least avoid being a default.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (12 preceding siblings ...)
  2021-02-28  1:36 ` ericonr
@ 2022-04-16  2:02 ` github-actions
  2022-04-30  2:13 ` [ISSUE] [CLOSED] " github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2022-04-16  2:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/20744#issuecomment-1100506569

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [ISSUE] [CLOSED] cmus: Starting CMUS without a session bus results in MPRIS error 
  2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
                   ` (13 preceding siblings ...)
  2022-04-16  2:02 ` github-actions
@ 2022-04-30  2:13 ` github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2022-04-30  2:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 777 bytes --]

Closed issue by flexibeast on void-packages repository

https://github.com/void-linux/void-packages/issues/20744

Description:
Installing and running `cmus` from the console results in an error message: "an error occured while initializing MPRIS". [This line of the cmus source](https://github.com/cmus/cmus/blob/d1290d50f9f7585c43b9e1326c0d6d1e0b4583f6/mpris.c#L491) suggests that `cmus` requires the presence of a session bus (cf. [the documentation for `sd_bus_default_user`](https://www.freedesktop.org/software/systemd/man/sd_bus_open.html)), and indeed, running `dbus-launch /bin/cmus` results in no error being reported on startup.

How should this be addressed? Should the `cmus` package be modified, or should upstream not be assuming the presence of a session bus?

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-04-30  2:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-08  6:26 [ISSUE] cmus: Starting CMUS without a session bus results in MPRIS error flexibeast
2020-04-10 20:47 ` ericonr
2020-04-11  0:34 ` flexibeast
2020-05-06  5:43 ` ericonr
2020-05-11  4:41 ` galmio
2020-05-11  4:42 ` galmio
2020-05-11  4:58 ` flexibeast
2020-05-11 16:06 ` galmio
2020-05-12 11:37 ` flexibeast
2020-08-28  2:05 ` shoober420
2020-08-28  2:05 ` shoober420
2020-09-30  1:12 ` ap4y
2020-09-30  2:34 ` shoober420
2021-02-28  1:36 ` ericonr
2022-04-16  2:02 ` github-actions
2022-04-30  2:13 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).