Results 1 to 3 of 3
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
12-02-2011 #1
- Join Date
- Dec 2011
- Posts
- 2
Application initialization failed: this isn't a Tk applicationcouldn't
Application initialization failed: this isn't a Tk applicationcouldn't connect to display "localhost.localdomain:59535
I can run xclock and wish with no problems, but somehow it doesn't allow my software to run tk.
I was thinking somehow it might be related to my xserver. When I do startx OR Xorf -configure, I get
xauth: file $HOMEi/.serverauth.5225 does not exist
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Originally, I had things working on Centos before my boot partition was destroyed and I had to re-install. Didn't think their would be issues between Centos and Fedora. Can anyone help me with this issue. Thanks.
-
12-03-2011 #2
- Join Date
- Jan 2005
- Location
- Saint Paul, MN
- Posts
- 818
The "tk" interpreter is wish. If you are attempting to run it as a script, this might be whar is still needed. I did TCL/TK stuff back in the 90s.
Code:#!/bin/sh # the "sh" will not see this comment line that continues as a comment but "wish" will... \ exec wish "$0" "$@" #this is code that is written in TK at this point and below... such as: button .b -text "Push Me" -command {tk_messageBox -message "hello, world"} pack .b
So the critical lines are:
Code:#!/bin/bash # \ exec wish "$0" "$@"
-
12-03-2011 #3
- Join Date
- Dec 2011
- Posts
- 2
this is not a wish problem. actually, I find that I can run wish without problem as well as some other tk applications. I was thinking it was related to my xserver. I'm not sure where this localdomain.localhost:5225 is coming from and how to fix it