audtool not working from crontab or console

Bug #286791 reported by Myk Dowling
2
Affects Status Importance Assigned to Milestone
Audacious
Invalid
Undecided
Unassigned
audacious (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: audacious

Ubuntu 8.04
Audacious 1.5.0-2ubuntu2~hardy1

I'm trying to use crontabs to change my current playlist in Audacious, so that the music playing first thing in the morning is different to the music I drift off to sleep listening to.

audtool completely fails to work when not run from an xconsole inside the same X session as Audacious.

When run from a standard console, I get:
-------------------

me@mymachine:~$audtool --current-song
In program audtool:
  * While attempting to connect to the D-Bus session bus
Error: D-Bus Error: dbus-launch failed to autolaunch D-Bus session: Autolaunch
rror: X11 initialization failed.

me@mymachine:~$

----------------
I assume this is the same thing that happens when audtool is run from a crontab. The command gives no output to standard or error outputs, and I can see nothing in the system logs.

Running this same command from an xconsole returns the currently playing song's name, using the current song name format as shown in the playlist and player.

I used to use XMMS, which handled this exact case perfectly. (Though by running xmms, rather than a separately-identified tool)

Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner.
There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. It would help us a lot if you could test Audacious 2.3 from the latest stable Ubuntu version (10.04) or the current Ubuntu development version (10.10). If you can test it, and it is still an issue, we would appreciate if you could upload updated logs by running apport-collect #286791, and any other logs that are relevant for this particular issue.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

Changed in audacious (Ubuntu):
status: New → Incomplete
Revision history for this message
Myk Dowling (politas) wrote :

Just installed audacious in Ubuntu 10.04, and this issue is still apparent.

Revision history for this message
Benjamin Drung (bdrung) wrote :

audacious 2.4-alpha1 is affected too. Can you report the bug upstream at http://jira.atheme.org?

Changed in audacious (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Myk Dowling (politas) wrote :

I've actually given up on Audacious some time ago due to the crippling bugs I reported that weren't being looked at, and have switched to Rhythmbox. I don't have much care factor left for Audacious. The whole Beep media player thing seems to have taken all the glitz from Winamp, and lost the best functionality from XMMS.

Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Andrej Shadura (andrew.sh) wrote :

Just use DISPLAY=:0 audtool ... where :0 is you X11 session's display

Changed in audacious (Ubuntu):
status: Triaged → Fix Committed
Changed in audacious:
status: New → Fix Committed
Revision history for this message
Andrej Shadura (andrew.sh) wrote :

Not a bug, won't fix

Changed in audacious:
status: Fix Committed → Invalid
Changed in audacious (Ubuntu):
status: Fix Committed → Invalid
description: updated
Revision history for this message
Myk Dowling (politas) wrote :

Ah. And of course, since that's not directly part of the audtool program, you aren't going to mention it in the man page, either? Because everyone who uses Linux should know technical details of X.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.