LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2004, 11:29 PM   #1
moeru
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
Running scripts


I know this is a really dumb question..how do you run scripts? for example, I'm trying to create an icon on my desktop for firefox. Doing /home/user/firefox/./firefox doesn't work unless I have a terminal running to "babysit" the application. Is there a way to do it without that?
 
Old 07-01-2004, 11:34 PM   #2
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Rep: Reputation: 15
make a link to /home/user/firefox/./firefox on your desktop
 
Old 07-01-2004, 11:35 PM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
If your creating an icon don't use the ./ it will just be the full path to the app
/home/user/firefox/firefox
 
Old 07-01-2004, 11:55 PM   #4
moeru
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Doing that works but I still need a terminal up to continue running the browser window. Is there just no way around that?
 
Old 07-01-2004, 11:57 PM   #5
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Rep: Reputation: 15
I don't understand why a terminal window is needed for running the browser.
 
Old 07-02-2004, 12:00 AM   #6
moeru
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Original Poster
Rep: Reputation: 0
When I click the icon I made for FIrefox, a terminal pops up and remains up for as long as I have Firefox running. If I close the terminal, Firefox closes as well
 
Old 07-02-2004, 12:02 AM   #7
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
If your using KDE or GNOME I think you just right-click and there is some option to create an icon. Is that what your talking about?

In a terminal if you put a space and a & on the end. That will put an app in the background.
/home/user/firefox/firefox &
 
Old 07-02-2004, 12:03 AM   #8
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Rep: Reputation: 15
that's weird, if you have other icons that works fine on the desktop, check their properties and try to imitate
 
Old 07-02-2004, 12:04 AM   #9
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Quote:
Originally posted by moeru
When I click the icon I made for FIrefox, a terminal pops up and remains up for as long as I have Firefox running. If I close the terminal, Firefox closes as well
When you right-click on the icon. What info does it give you. Like the app and path.
 
Old 07-02-2004, 12:05 AM   #10
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
LOL, make a shell script......
Code:
#!/bin/bash

cd /home/user/firefox/
./firefox
and then just point the desktop config file to the shell script......
easy........!!

Last edited by 320mb; 07-02-2004 at 12:06 AM.
 
Old 07-02-2004, 10:42 AM   #11
moeru
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I emulated the same process with Thunderbird (that I'm doing with Firefox). Thunderbird worked perfectly with no term window. Might just have to make a new script
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running scripts bhmsi Linux - Newbie 6 04-23-2005 07:05 PM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 01:56 PM
Running scripts crash_zero Mandriva 5 04-19-2004 03:23 PM
running shell scripts salparadise Linux - Newbie 2 12-21-2002 06:40 AM
Help Running Scripts josefalero Linux - Newbie 2 11-14-2002 05:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration