Thanks for your continuing help Tony. Looks like I took 2 steps forward and one step backward. While testing the 'gnome-terminal -x myprogram' approach, I discovered that I could add '--background=BLUE --foreground=WHITE' and I got nice colors in the text window, instead of black and white. With the new approach (.desktop file in user/.gnome-desktop), I have lost the colors. However, my application program does run when I click on the icon. My current questions are:
1. Is there a way to add color lines to the [Desktop Entry] file to get my colors back? 2. When I log onto the gnome window as 'parts', the 'Start Here' window is automatically open, and I have to close it to be able to see my 'Parts Dept' icon. Can I change this to not display the 'Start Here' window unless I click on the 'Start Here' icon? 3. After reading your note on .bash_profile, I removed my .profile file from the 'parts' users directory, and re-enabled .bash_profile, adding the switch settings to it, from the .profile file. For example, I have a lot of switches like this: INVENTORY=TRUE BINNUMS=TRUE MULTICOST=FALSE DATADIR=/parts/data etc. 4. After logging onto gnome as 'parts', with .bash_profile modified and enabled, clicking on the 'Parts Dept' icon will briefly display a black and white empty text window, and then will immediately close. Opening a regular terminal window and testing for my switches (ie, echo $INVENTORY), confirms that they are not set. Restoring things back to using the .profile allows the application to come up properly. Why will .bash_profile not work? Again, thanks for your help. I think I am close on this. Billy Davis ----- Original Message ----- From: "Anthony E. Greene" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 8:46 PM Subject: Re: Fw: Running text based application in a Window > On 22-Jan-2003/14:12 -0500, Billy Davis <[EMAIL PROTECTED]> wrote: > >I have been playing with variations of your notes and now have a much > >better feel for what I really want. I would like to have user 'parts' > >log into an xwindow screen and see the normal gnome screen. Then, I > >would like to add an icon the says 'Parts Dept'. When the icon is > >clicked on, I would like the parts application (ie, myprogram) to > >execute. So, my real question is, how do I add a fresh icon and startup > >script file to the gnome window? > > I actually started to suggest this, but then decided to answer the > question that you asked. > > All you have to do is place a .desktop file in each user's ~/.Desktop > directory. The file might look like this: > > [Desktop Entry] > Name=Acme Parts Wizard > Comment=parts database > Exec=partswiz > Icon=/usr/local/share/pixmaps/partswiz.png > Terminal=true > MultipleArgs=false > Type=Application > > > >Also, some time back, I found that .bash_profile in the users home > >directory would not allow me to start the text based application > >properly. > > I'm not sure why that is. I just tried it with mc, and it worked fine. > Using the code I posted, I was able to have mc start automatically in a > console login or in a terminal window when logging in via gdm. At first I > tried running it as a background task. That works in a terminal window, > but not at the console. > > Tony > -- > Anthony E. Greene <mailto:[EMAIL PROTECTED]%3E> > OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D > AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/> > Linux. The choice of a GNU generation <http://www.linux.org/> > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list