Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Mac Applications / February 2005



Tip: Looking for answers? Try searching our database.

gimp on x11 - Gtk-WARNING **: cannot open display

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gangadharbatla@gmail.com - 09 Feb 2005 14:32 GMT
i'm trying to run gimp from the command prompt (i tried both xterm and
terminal.app -- and in both cases i had the X Server on)

i still get this message

"Gtk-WARNING **: cannot open display:"

i set the display to localhost in the ~/.cshrc file with
setenv DISPLAY :0.0

still the same error message.

help!!

Harsha Gangadharbatla
Tom Harrington - 09 Feb 2005 17:24 GMT
> i'm trying to run gimp from the command prompt (i tried both xterm and
> terminal.app -- and in both cases i had the X Server on)
[quoted text clipped - 9 lines]
>
> help!!

Are you actually using csh?  The default on Mac OS X is bash.  Putting
that line in .cshrc won't make any difference if you're using bash.

Signature

Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 2.0:  Delocalize, Repair Permissions, lots more.
See http://www.atomicbird.com/

Paul Mitchum - 09 Feb 2005 22:45 GMT
> i'm trying to run gimp from the command prompt (i tried both xterm and
> terminal.app -- and in both cases i had the X Server on)
[quoted text clipped - 9 lines]
>
> help!!

If you're using Apple's X11, try this:

open-x11 gimp
gangadharbatla@gmail.com - 10 Feb 2005 08:23 GMT
> > i'm trying to run gimp from the command prompt (i tried both xterm and
> > terminal.app -- and in both cases i had the X Server on)
[quoted text clipped - 13 lines]
>
> open-x11 gimp

naah, that didn't work either. the thing is i can open gimp otherwise
(you know, by just clicking on the .app file from applications) it's
just bothering the heck outta me that i can't open it from command
prompt. must be the bash thing that tom was talking about...but that
shouldn't be the case with X 11, right?
thanks for your replies :)
gangadharbatla
Tom Harrington - 10 Feb 2005 16:16 GMT
> > > i'm trying to run gimp from the command prompt (i tried both xterm
> and
[quoted text clipped - 20 lines]
> prompt. must be the bash thing that tom was talking about...but that
> shouldn't be the case with X 11, right?

Why not?  If you're running things from the command line, then your
command line environment is of primary importance in determining which
commands work and which ones don't.  If you're not using the shell you
think you're using, then DISPLAY isn't really set, and therefore
attempting to use any command that needs DISPLAY will fail.

Signature

Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 2.0:  Delocalize, Repair Permissions, lots more.
See http://www.atomicbird.com/

Andre Berger - 10 Feb 2005 17:55 GMT
* Tom Harrington <tph@pcisys.no.spam.dammit.net>, 2005-02-10 17:16 +0100:

> > > > "Gtk-WARNING **: cannot open display:"
[...]
> > > > setenv DISPLAY :0.0
[...]
> > > open-x11 gimp
[...]
> Why not?  If you're running things from the command line, then your
> command line environment is of primary importance in determining which
> commands work and which ones don't.  If you're not using the shell you
> think you're using, then DISPLAY isn't really set, and therefore
> attempting to use any command that needs DISPLAY will fail.

It would probably help to put create an ~/.MacOSX/environment.plist,
like

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>DISPLAY</key>
    <string>:0.0</string>
</dict>
</plist>

BTW, I put LC_* and PATH variables in there as well.

-Andre
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.