Option "-z" does not work when X not configured

Bug #666272 reported by fuenfundachtzig
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Somehow similar to bug #165983, but not completely. We are running inkscape on a server without X for converting SVG images. In principle, inkscape offers a nice batch mode via the "-z" option, but this seems not to be implemented consistently. If you run inkscape as a normal user your get

Xlib: connection to "localhost:11.0" refused by server
Xlib: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match
(inkscape:24050): Gdk-CRITICAL **: gdk_display_list_devices: assertion `GDK_IS_DISPLAY (display)' failed
301.27942

so despite some error messages you get the expected output. If you do the same as apache user (which doesn't have the X authorization files) you get

$ inkscape -z -W drawing.svg
X11 connection rejected because of wrong authentication.
The application 'inkscape' lost its connection to the display localhost:11.0;
most likely the X server was shut down or you killed/destroyed
the application.

so inkscape does not run properly.

It would be nice to be able to run inkscape without any need for X at all.

Tags: cli
Revision history for this message
fuenfundachtzig (comicsinbox) wrote :

Tested in Inkscape 0.46 (Sep 17 2009).

su_v (suv-lp)
description: updated
tags: added: cli
Revision history for this message
su_v (suv-lp) wrote :

> Tested in Inkscape 0.46 (Sep 17 2009).

Can you test with a current stable version (0.48)? Possibly the fix in Inkscape 0.47 for bug #167857 “assertion hit when running inkscape without DISPLAY set” helps (comment #8)?
<https://bugs.launchpad.net/inkscape/+bug/167857>

Revision history for this message
su_v (suv-lp) wrote :

Similar issue when running inkscape (without GUI) on a (web-)server (user doesn't have sufficient privileges)?

Bug #376866 “crash when run non-interactively and .gnome2 directory unable to be created”
<https://bugs.launchpad.net/inkscape/+bug/376866>

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.