 |
 |
apple x11 application menu
|
 |
|
 |
|
Forum Regular
Join Date: Sep 2002
Status:
Offline
|
|
dont know if anyone else is having this problem, but the only menu command that works in the application menu is the xterm. if i add a new application, it doesnt launch from the menu, but it will launch from an xterm. for instance, xmahjongg works only if i type from the terminal.
what gives?
anyone have their application menu working?
did you have to change anything to get it to work?
bg
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status:
Offline
|
|
Did you set your paths correctly?
I added this to my.xinitrc
PATH="$PATH:/sw/bin"
If it is a file that is not in the above make sure you put the full pathname.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Sep 2002
Status:
Offline
|
|
that didnt work, but what i ended up doing was adding /sw/bin/ before the commands in the menu. sucks it doesnt wokr like it should...
bg
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status:
Offline
|
|
Try adding this to the top of your .xinitrc.
source /sw/bin/init.sh
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2000
Location: Woodridge, IL
Status:
Offline
|
|
Originally posted by clarkgoble:
Try adding this to the top of your .xinitrc.
source /sw/bin/init.sh
Aha - I tried that and it didn't work at first. However, moving it to be the first line (after #!/bin/sh, of course) worked great! Here's my current .xinitrc, if anyone is interested:
#!/bin/sh
# set up the fink path if it exists
if [-e /sw/bin/init.sh]; then source /sw/bin/init.sh; fi
# set up the X11 paths
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then xrdb -merge $sysresources; fi
if [ -f $sysmodmap ]; then xmodmap $sysmodmap; fi
if [ -f $userresources ]; then xrdb -merge $userresources; fi
if [ -f $usermodmap ]; then xmodmap $usermodmap; fi
# correct for locale problems in XDarwin
unset LANG
# Start the proper window manager and programs
# Find out if X11 is running at all
x11pid=$(cat /tmp/.X0-lock)
if [ $x11pid -ne 0 ] ; then
# Determine if "XDarwin.app" is running
isXDarwin="`ps -x -o command | grep XDarwin.app | grep -v grep | wc -l`"
if [ $isXDarwin -ne 0 ] ; then
twm &
xterm -geometry 120x54+10+10
fi
# Determine if "X11.app" is running
isApple="`ps -x -o command | grep X11.app | grep -v grep | wc -l`"
if [ $isApple -ne 0 ] ; then
quartz-wm &
xterm -geometry 120x54+10+30 -fa Monaco -fs 10
fi
#exec gnome-session --no-xshm
#/sw/bin/startkde > /tmp/kde.log 2>&1
fi
(Last edited by diamondsw; Feb 11, 2003 at 03:16 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status:
Offline
|
|
On the X11 mailing list it suggests that the window manager doesn't see your .tcshrc nor even what is in the .xinitrc. That's why sourcing /sw/bin/init.rc probably fixes it.
There is also a note by Apple for putting a path in a plist which everything then sees.
http://developer.apple.com/qa/qa2001/qa1067.html
Note that this should let you type only the command name to include a program in the X11 Apple menu.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status:
Offline
|
|
Oh, one more thing. If you want to use an other window manager (say KDE) but want cut and paste to work, make sure you have the following line prior to your window manager exec.
quartz-wm --only-proxy&
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2001
Status:
Offline
|
|
DiamondSW
I saved your .xinitrc to ~ to try and get my path working correctly but still to no avail. What is going on, I still need to type /sw/bin/ before a command to get it to work.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2000
Location: Woodridge, IL
Status:
Offline
|
|
Originally posted by ShotgunEd:
DiamondSW
I saved your .xinitrc to ~ to try and get my path working correctly but still to no avail. What is going on, I still need to type /sw/bin/ before a command to get it to work.
Don't know, unless for some reason you don't have an init.sh file. I also have updated to X11 0.2; maybe they fixed something there as well.
Good luck!
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|