Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > apple x11 application menu

apple x11 application menu
Thread Tools
Forum Regular
Join Date: Sep 2002
Status: Offline
Reply With Quote
Feb 10, 2003, 08:04 PM
 
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
Reply With Quote
Feb 10, 2003, 08:25 PM
 
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
Reply With Quote
Feb 10, 2003, 09:41 PM
 
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
Reply With Quote
Feb 11, 2003, 03:06 AM
 
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
Reply With Quote
Feb 11, 2003, 02:58 PM
 
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
Reply With Quote
Feb 13, 2003, 04:34 PM
 
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
Reply With Quote
Feb 13, 2003, 05:50 PM
 
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
Reply With Quote
Feb 14, 2003, 06:34 AM
 
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
Reply With Quote
Feb 14, 2003, 12:42 PM
 
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!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:34 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2