-b and --batch start GUI

Bug #988256 reported by Michael Schwendt
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
SoundConverter
Fix Released
High
GautierPortet

Bug Description

With 2.0.2 and 2.0.3 (possibly also 2.0.x), a command-line using -b or --batch, e.g

    soundconverter -b test.flac

starts the GUI.

Changed in soundconverter:
milestone: none → 2.0.4
assignee: nobody → GautierPortet (kassoulet)
importance: Undecided → High
status: New → Confirmed
Changed in soundconverter:
status: Confirmed → Fix Committed
Changed in soundconverter:
status: Fix Committed → Fix Released
Revision history for this message
Jan Riepshoff (jriepshoff) wrote :

The bug still occurs with 2.1.2 on Ubuntu 12.04

jriepshoff@mordor:/home/webroots/api/tools$ soundconverter --batch
SoundConverter 2.1.2
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
  using Gstreamer version: 0.10.36
  using 2 thread(s)

(soundconverter:14315): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Traceback (most recent call last):
  File "/usr/local/bin/soundconverter", line 176, in <module>
    from soundconverter.batch import cli_convert_main
  File "/usr/local/lib/soundconverter/python/soundconverter/batch.py", line 29, in <module>
    from gstreamer import TagReader
  File "/usr/local/lib/soundconverter/python/soundconverter/gstreamer.py", line 73, in <module>
    profiles = _GCONF.get_list(_GCONF_PROFILE_LIST_PATH, 1)
glib.GError: No D-BUS daemon running

Revision history for this message
Michael Schwendt (mschwendt) wrote :

That's something different.

Obviously, /usr/bin/soundconverter uses GTK+ ("import gtk") which tries to initialize the GUI framework for X. I dunno whether the "batch mode" has ever been supposed to be a real CLI mode that works without X running.

Revision history for this message
GautierPortet (kassoulet) wrote :

It should work without a display.
Not really a requirement, but this is clearly a regression that can be fixed.

Revision history for this message
Jan Riepshoff (jriepshoff) wrote :

Don't know whether it really is something different from a user's perspective. I wanted to use soundconverter on my server to convert audio files in batch mode. This can't be done at the moment.

Is there a way to make the server "think" that he has a display?

Revision history for this message
GautierPortet (kassoulet) wrote :

You can try to "SSH -X" to it. This will use your current display.

Revision history for this message
Michael Schwendt (mschwendt) wrote :

Or use "Xvfb", the "X Virtual Frame Buffer".

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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