Inkscape's -g option does not make sense when using GTK/Quartz on Mac OS X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Inkscape |
Medium
|
Gellule |
Bug Description
The documentation for inkscape's "-g" parameter says, "Try to use X server (even if $DISPLAY is not set)." This does not make sense when inkscape is built using GTK/Quartz on Mac OS X. In this case, the application does not use X. The default behavior for inkscape in this environment should be to present its GUI even without $DISPLAY set.
tags: | added: osx |
su_v (suv-lp) wrote : | #1 |
tags: |
added: documentation removed: osx |
Changed in inkscape: | |
status: | New → Fix Released |
W. Michael Petullo (mike-flyn) wrote : | #2 |
I think that Inkscape on Mac OS X, when compiled against GTK/Quartz (no X requirement), should run the GUI by default. That is, --with-gui should not be required. Just as Inkscape will run fine on traditional Unix when DISPLAY is set, it will run fine in this environment (without DISPLAY). Does Inkscape require the --with-gui parameter on Windows?
su_v (suv-lp) wrote : | #3 |
> Inkscape on Mac OS X, when compiled against GTK/Quartz
> (no X requirement), should run the GUI by default.
It does not run the GUI for you? The experimental gtk-quartz build of Inkscape 0.47pre0 for OS X Leopard I have tested did use the GUI by default. The reports about a recent Inkscape 0.47 gtk-quartz build on OS X Tiger (both as command line version and bundled as osxapp) never indicated that 'inkscape' or 'inkscape-bin' (in the bundle) needs to be launched with the option '--with-gui'.
> That is, --with-gui should not be required.
AFAIK it is not required.
It is possible that I completely misunderstood your initial report - could you provide more information about how you configure, build and bundle Inkscape 0.47 +quartz? Do you need '--with-gui' when launching inkscape from the command line or as argument in the launcher script inside the application bundle?
Or is the issue that $DISPLAY is unset on your system (no X11/Xquartz installed) and you see similar issues as reported in bug #167857 “assertion hit when running inkscape without DISPLAY set” (<https:/
su_v (suv-lp) wrote : | #4 |
tested with 'Inkscape-
The launcher script calls 'Contents/
| $ unset DISPLAY; /full/path/
| cp: /full/path/
|
| (process:81770): Gtk-WARNING **: Locale not supported by C library.
| Using the fallback 'C' locale.
| Nothing to do!
the same error as with Inkscape 0.47 compiled with X11 dependency (from bug #498710 comment #4):
| $ unset DISPLAY; /Applications/
| Setting Language: .UTF-8
|
| (process:46762): Gtk-WARNING **: Locale not supported by C library.
| Using the fallback 'C' locale.
| Nothing to do!
Adding '--with-gui' as command line argument to launch the native gtk version works:
| $ unset DISPLAY; /full/path/
| cp: /full/path/
|
| (process:81929): Gtk-WARNING **: Locale not supported by C library.
| Using the fallback 'C' locale.
and the main Inkscape window launches.
This GTK+/Quartz build is not fully functional (see <http://
Changed in inkscape: | |
status: | Fix Released → Confirmed |
tags: |
added: build gtk-osx osx removed: documentation |
su_v (suv-lp) wrote : | #5 |
If manually unsetting $DISPLAY (the variable is set by the launch services automatically once X11/Xquartz had been installed), inkscape built with gtk+/quartz fails to launch:
LeWitt:~ suv$ echo $DISPLAY
/tmp/launch-
LeWitt:~ suv$ unset DISPLAY
LeWitt:~ suv$ echo $DISPLAY
LeWitt:~ suv$ gdb /Volumes/
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:11:58 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
(…)
(gdb) run
Starting program: /Volumes/
Reading symbols for shared libraries +++++++
Nothing to do!
Program exited normally.
(gdb) bt
No stack.
(gdb) quit
LeWitt:~ suv$ port installed gtk2
The following ports are currently installed:
gtk2 @2.22.1_
LeWitt:~ suv$ /Volumes/
Inkscape 0.48+devel r10101 (Mar 14 2011)
LeWitt:~ suv$
Changed in inkscape: | |
importance: | Undecided → Medium |
Changed in inkscape: | |
assignee: | nobody → Gellule (gellule-xg) |
Gellule (gellule-xg) wrote : | #6 |
Changed in inkscape: | |
status: | Confirmed → Fix Committed |
tags: | added: backport-proposed |
Changed in inkscape: | |
milestone: | none → 0.49 |
tags: | removed: backport-proposed |
Changed in inkscape: | |
milestone: | 0.49 → 0.48.2 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
tags: |
added: gtk-quartz removed: gtk-osx |
The current version of the man page says:
-g, --with-gui
Try to use the GUI (on Unix, use the X server even if $DISPLAY is not set).