So I finally decided to figure out why I couldn't just type "port" (etc.) in an X11 window. I found the section in the installation guide: http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
To launch X11 apps directly from an X11 window (instead of a terminal window), you need to have the MacPorts paths imported into X11 sessions when they are opened. To do this:
1. Open X11 and select "Customize Menu ..." from the Applications menu. 2. Double-click the menu item "Terminal" and change: xterm to xterm -ls 3. Click "Done" to save the change.
This works great in that I can select "Terminal" from X11's "Applications" menu and it opens a new xterm which knows my PATH and I can type "port" and so forth and it knows where it is. However, when X11.app first opens, it automatically opens an xterm for me, and that xterm still doesn't know my PATH. How do I teach it?
2007/5/23, Ryan Schmidt <ryandesign@macports.org>:
However, when X11.app first opens, it automatically opens an xterm for me, and that xterm still doesn't know my PATH. How do I teach it?
Hi, you can change the "xterm" command in /etc/X11/xinit/xinitrc to "xterm -ls" too. Didier.
On 22 May, 2007, at 18:04, Ryan Schmidt wrote:
However, when X11.app first opens, it automatically opens an xterm for me, and that xterm still doesn't know my PATH. How do I teach it?
If I recall, that initial xterm is opened through your .xinitrc. If you don't have an .xinitrc, /usr/X11R6/lib/X11/xinit/xinitrc is used instead. If you want to change the arguments to that initial xterm (or remove it completely, as I did), then you can copy that file to ~/.xinitrc and edit it. Obviously, you will want to make all of your changes before the line 'exec quartz-wm'. Chris
Ryan, I use this at the top of my /etc/X11/xinit/xinitrc: source ~/.profile In fact, that was on the InstallingMacPorts page and I erroneoudly removed it when I added the stuff about xterm. I put it pack and it should all work now. http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts There may be a better way to do it but that's what I arrived at through tips from other people. Mark Ryan Schmidt <ryandesign@macports.org> on Tuesday, May 22, 2007 at 3:04 PM -0800 wrote:
So I finally decided to figure out why I couldn't just type "port" (etc.) in an X11 window. I found the section in the installation guide:
http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
To launch X11 apps directly from an X11 window (instead of a terminal window), you need to have the MacPorts paths imported into X11 sessions when they are opened. To do this:
1. Open X11 and select "Customize Menu ..." from the Applications menu. 2. Double-click the menu item "Terminal" and change: xterm to xterm -ls 3. Click "Done" to save the change.
This works great in that I can select "Terminal" from X11's "Applications" menu and it opens a new xterm which knows my PATH and I can type "port" and so forth and it knows where it is.
However, when X11.app first opens, it automatically opens an xterm for me, and that xterm still doesn't know my PATH. How do I teach it?
"Didier Arenzana" <darenzana@gmail.com> on Tuesday, May 22, 2007 at 3:25 PM -0800 wrote:
you can change the "xterm" command in /etc/X11/xinit/xinitrc to "xterm -ls" too.
I tried that before I updated the wiki, but I recall that I could not get it to work. Are you using it that way? Mark
2007/5/23, markd@macports.org <markd@macports.org>:
"Didier Arenzana" <darenzana@gmail.com> on Tuesday, May 22, 2007 at 3:25 PM -0800 wrote:
you can change the "xterm" command in /etc/X11/xinit/xinitrc to "xterm -ls" too.
I tried that before I updated the wiki, but I recall that I could not get it to work. Are you using it that way?
No, I'm not. In my case, my PATH is defined in ~/.MacOSX/environment.plist .... But I already did changes in xinitrc on other unix systems, and it worked, so I though it would here too.
Mark
"Didier Arenzana" <darenzana@gmail.com> on Tuesday, May 22, 2007 at 3:36 PM -0800 wrote:
No, I'm not. In my case, my PATH is defined in ~/.MacOSX/environment.plist ....
But I already did changes in xinitrc on other unix systems, and it worked, so I though it would here too.
Well it could be I made a mistake, but I couldn't get it to work. But I've never used that so it was new to me. Say, anyone know how to get an X11 app to run from the Applications menu? I've never been able to use that except to lanch xterm itself. Mark
On May 22, 2007, at 4:30 PM, markd@macports.org wrote:
Ryan,
I use this at the top of my /etc/X11/xinit/xinitrc:
source ~/.profile
In fact, that was on the InstallingMacPorts page and I erroneoudly removed it when I added the stuff about xterm. I put it pack and it should all work now.
http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
There may be a better way to do it but that's what I arrived at through tips from other people.
For many years, I've had (among other things) XTerm*loginShell: true in my ~/.Xdefaults file. This makes sure xterm runs the shell as a login shell regardless of how it is launched. If you use this, be sure to restart X prior to testing it. Bryan
Mark
Ryan Schmidt <ryandesign@macports.org> on Tuesday, May 22, 2007 at 3:04 PM -0800 wrote:
So I finally decided to figure out why I couldn't just type "port" (etc.) in an X11 window. I found the section in the installation guide:
http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
To launch X11 apps directly from an X11 window (instead of a terminal window), you need to have the MacPorts paths imported into X11 sessions when they are opened. To do this:
1. Open X11 and select "Customize Menu ..." from the Applications menu. 2. Double-click the menu item "Terminal" and change: xterm to xterm -ls 3. Click "Done" to save the change.
This works great in that I can select "Terminal" from X11's "Applications" menu and it opens a new xterm which knows my PATH and I can type "port" and so forth and it knows where it is.
However, when X11.app first opens, it automatically opens an xterm for me, and that xterm still doesn't know my PATH. How do I teach it?
On 5/23/07, markd@macports.org <markd@macports.org> wrote:
Say, anyone know how to get an X11 app to run from the Applications menu? I've never been able to use that except to lanch xterm itself.
Applications / Customize Menu, then enter your app details? Is that what you mean? Regards, Marc
"Marc André Selig" <mas@macports.org> on Tuesday, May 22, 2007 at 5:05 PM -0800 wrote:
Say, anyone know how to get an X11 app to run from the Applications menu? I've never been able to use that except to lanch xterm itself.
Applications / Customize Menu, then enter your app details? Is that what you mean?
Yes, but I can't get it to launch my xapps. I enter the path, click on it, but nothing happens. Mark
Works for me fine... I have sudo /opt/local/bin/wireshark & for example as a command in there with a shortcut I also have manager ALL=(root) NOPASSWD:/opt/local/bin/wireshark in my /etc/sudoers file so there is no need for a password entry... Regards Mike (maybe its the full pathname that makes it work....) On May 22, 2007, at 5:35 PM, markd@macports.org wrote:
"Marc André Selig" <mas@macports.org> on Tuesday, May 22, 2007 at 5:05 PM -0800 wrote:
Say, anyone know how to get an X11 app to run from the Applications menu? I've never been able to use that except to lanch xterm itself.
Applications / Customize Menu, then enter your app details? Is that what you mean?
Yes, but I can't get it to launch my xapps. I enter the path, click on it, but nothing happens.
Mark
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
Mike Savory <msavory1@nzbox.com> on Tuesday, May 22, 2007 at 7:18 PM -0800 wrote:
Works for me fine...
I have
sudo /opt/local/bin/wireshark &
for example as a command in there with a shortcut
I also have
manager ALL=(root) NOPASSWD:/opt/local/bin/wireshark
in my /etc/sudoers file so there is no need for a password entry...
I can't get moodss to launch that way. I'll experiment with others apps later. Thanks for the info, it helps to know how it is working for you. Mark
On 22 May, 2007, at 22:50, markd@macports.org wrote:
I can't get moodss to launch that way. I'll experiment with others apps later. Thanks for the info, it helps to know how it is working for you.
Well, it would be useful to check Console.app to see exactly what the problem is. X11.app seems to run a copy of your shell, from which it runs the command. For example, when I try to launch freeciv, I see: zsh: command not found: civclient This is of course correct in my case, as I have since uninstalled freeciv. But if this were due to a PATH error, hardcoding the path should work. Chris
Chris Pickel <chpickel@stwing.upenn.edu> on Tuesday, May 22, 2007 at 8:01 PM -0800 wrote:
Well, it would be useful to check Console.app to see exactly what the problem is. X11.app seems to run a copy of your shell, from which it runs the command. For example, when I try to launch freeciv, I see:
zsh: command not found: civclient
This is of course correct in my case, as I have since uninstalled freeciv. But if this were due to a PATH error, hardcoding the path should work.
I checked that but I see no errors. I don't understand why. Mark
Tue, 22 May 2007 (17:28 -0600 UTC) Bryan Blackburn wrote:
For many years, I've had (among other things)
XTerm*loginShell: true
in my ~/.Xdefaults file. This makes sure xterm runs the shell as a login shell regardless of how it is launched. If you use this, be sure to restart X prior to testing it.
I believe you could add the line to your ~/.Xresources file, and issue the command xrdb -merge ~/.Xresources in your ~/.xinitrc or at the command line to add the resource for any user without having to restart the X server. The resource values become available when the next instance of XTerm (or any complying application) launches. -- Dr. Robert Delius Royar Associate Professor of English Morehead State University Morehead, Kentucky
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 May I have a copy of your ~/.MacOSX/environment.plist? TIA - -Altoine Didier Arenzana wrote:
2007/5/23, markd@macports.org <markd@macports.org>:
"Didier Arenzana" <darenzana@gmail.com> on Tuesday, May 22, 2007 at 3:25 PM -0800 wrote:
you can change the "xterm" command in /etc/X11/xinit/xinitrc to "xterm -ls" too.
I tried that before I updated the wiki, but I recall that I could not get it to work. Are you using it that way?
No, I'm not. In my case, my PATH is defined in ~/.MacOSX/environment.plist ....
But I already did changes in xinitrc on other unix systems, and it worked, so I though it would here too.
Mark
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGXjtJS0foIafBdlkRAga8AJ91lJqNwqEIUhrJlVHfwzpCVGd/TgCghHdm GNByLL0aiqHzZ/P0Kon1H0M= =f7Ie -----END PGP SIGNATURE-----
participants (9)
-
Altoine Barker
-
Bryan Blackburn
-
Chris Pickel
-
Didier Arenzana
-
Marc André Selig
-
markd@macports.org
-
Mike Savory
-
robert delius royar
-
Ryan Schmidt