Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Apr 08, 2020 4:09 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Please teach a method to start an application in Linux.
PostPosted: Thu Feb 07, 2008 3:59 am 
Offline

Joined: Thu Feb 07, 2008 3:46 am
Posts: 30
Hi everyone...

I want to start an application in Linux, but do not know the full path of the application.

For example, it starts with the following cord when I start Safari in MacOS X and Internet Explorer in Windows.

dim f as FolderItem

#if TargetMacOS
fullpath = "Macintosh HD:Applications:Safari.app:"
#endif
#if TargetWin32
fullpath = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
#endif

f = GetFolderItem( fullpath )
f.Launch()


When I start FireFox in Linux, what kind of pass should I set?

Thanks for your help.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 07, 2008 9:05 am 
Offline

Joined: Thu Jan 26, 2006 8:38 am
Posts: 334
almost all linux systems use a common path, so programs can be run by merely calling there name, a way to this via rb would be
#if TargetLinux
dim sh as new shell
sh.execute("firefox")
#endif

_________________
Faith is a cop-out. It is intellectual bankruptcy. If the only way you can accept an assertion is by faith, then you are conceding that it can't be taken on its own merits.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 07, 2008 1:37 pm 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
except shell does not necessary inherit the PATH :)

FYI - You should not be launching apps based on absolute paths on OS X
There is a means to find the app by it's bundle ID or creator code and then launch that
Apps can be anywhere including inside a users private "Application" directory


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 08, 2008 9:19 pm 
Offline

Joined: Thu Feb 07, 2008 3:46 am
Posts: 30
Thank you for comment.

With the sample which had you teach it, I was able to start Firefox.

However, I was going to start F-Spot by the same method,
but was not able to start.

Will the names of the application be different?

hairy_palms wrote:
almost all linux systems use a common path, so programs can be run by merely calling there name, a way to this via rb would be
#if TargetLinux
dim sh as new shell
sh.execute("firefox")
#endif


Thanks for your help.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 08, 2008 10:38 pm 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
Certainly the name of the executable for f-spot will be different than the one for Firefox


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Feb 10, 2008 4:43 am 
Offline

Joined: Thu Jan 26, 2006 8:38 am
Posts: 334
no idea what the command for fspot is, i dont use it,
try fspot f-spot its bound to be one of those two i would think.

_________________
Faith is a cop-out. It is intellectual bankruptcy. If the only way you can accept an assertion is by faith, then you are conceding that it can't be taken on its own merits.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Feb 12, 2008 2:42 pm 
Offline
User avatar

Joined: Wed Apr 12, 2006 6:30 pm
Posts: 11
Location: Grand Rapids, MI
hairy_palms wrote:
no idea what the command for fspot is, i dont use it,
try fspot f-spot its bound to be one of those two i would think.


It's f-spot.

_________________
xarius
smccuan@crawfordcountydu.org


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Feb 17, 2008 8:07 pm 
Offline

Joined: Thu Feb 07, 2008 3:46 am
Posts: 30
Hi all,

My reply was delayed. I apologize.
At first I was able to start an application in 'f-spot' with a terminal. Thank you.

Therefore I compile an application for Linux in REALbasic at once and I copy an application to a desktop of Ubuntu and Double clicked, but the application that I made does not start.

The following error message appears.

"No application suitable for automatic installation is available for handling this kind of file."


What kind of procedure must you do to start the application that I made with REALbasic in Linux?

Thanks for your help.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Feb 17, 2008 10:45 pm 
Offline

Joined: Thu Sep 28, 2006 12:29 am
Posts: 154
Location: Austin, TX
It sounds like you do not have execute privileges for the program when you copy it into Linux. This is a fairly common occurrence as every OS deals with privileges differently. The easiest thing to do is to simply grant execute privileges to all users using the chmod command:
$ sudo chmod a+x yourAppName


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group