LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-08-2011, 04:52 AM   #1
EdN
Member
 
Registered: Jun 2009
Location: Temecula, CA
Distribution: Fedora 19
Posts: 38

Rep: Reputation: 0
Problem creating a launcher


I am trying to create a launcher in Fedora 13 which will run a simple script named proj4a. I run this script from the command line as follows:
$ $HOME/proj4a >$HOME/proj4a_out
where proj4a is an executable file in my home directory and the output goes into a file, proj4a_out, in my home directory. Everything works fine.
I created a launcher called Proj4a and in the command field I entered the following:
' $HOME/proj4a >$HOME/proj4a_out'
When I click on the launcher it comes back with the following:
There was an error launching the application.
Details: Failed to execute child process "$HOME/proj4a >$HOME/proj4a_out" (No such file or directory)
I can't for the life of me figure out what is wrong here. Does anybody see what I'm missing?
 
Old 05-08-2011, 05:45 AM   #2
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 38 x86_64
Posts: 539

Rep: Reputation: 59
Quote:
Originally Posted by EdN View Post
[snip]
Details: Failed to execute child process "$HOME/proj4a >$HOME/proj4a_out" (No such file or directory)
I can't for the life of me figure out what is wrong here. Does anybody see what I'm missing?
I had a similar problem, which I fixed by putting a script file in the directory where I wanted to run the executable 'rpcemu', and that script was 'runrpcemu'...
Code:
#!/bin/sh
#
# Runs RPCemu
# installed in /home/terry/RPCemu-168

cd /home/terry/RPCemu-168

./rpcemu
My desktop launcher included the line...
Code:
Exec=/home/terry/RPCemu-168/runrpcemu
Not sure if my problem was exactly the same , but it is worth a try.

Cheers,
Terry
 
Old 05-08-2011, 01:37 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by EdN View Post
Does anybody see what I'm missing?
The launcher does not run a shell to execute the command so $HOME is treated literally. If you change $HOME to the required value (/home/<your user name>/) it should work.
 
Old 05-08-2011, 02:54 PM   #4
EdN
Member
 
Registered: Jun 2009
Location: Temecula, CA
Distribution: Fedora 19
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
The launcher does not run a shell to execute the command so $HOME is treated literally. If you change $HOME to the required value (/home/<your user name>/) it should work.
I tried what you suggested and I now get the following message:
Details: Failed to execute child process "/home/enowak/proj4a >/home/enowak/proj4a_out" (No such file or directory)

Last edited by EdN; 05-08-2011 at 02:56 PM.
 
Old 05-08-2011, 03:17 PM   #5
EdN
Member
 
Registered: Jun 2009
Location: Temecula, CA
Distribution: Fedora 19
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by terry-duell View Post
I had a similar problem, which I fixed by putting a script file in the directory where I wanted to run the executable 'rpcemu', and that script was 'runrpcemu'...
Code:
#!/bin/sh
#
# Runs RPCemu
# installed in /home/terry/RPCemu-168

cd /home/terry/RPCemu-168

./rpcemu
My desktop launcher included the line...
Code:
Exec=/home/terry/RPCemu-168/runrpcemu
Not sure if my problem was exactly the same , but it is worth a try.

Cheers,
Terry
I create a launcher by right-clicking my desktop and then clicking "create launcher...".
This produces a box which contains entries for Type:, Name:, Command:, and Comment: .
Did you put the line "Exec=/home/terry/RPCemu-168/runrpcemu" into the command: box?
 
Old 05-08-2011, 06:01 PM   #6
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 38 x86_64
Posts: 539

Rep: Reputation: 59
Quote:
Originally Posted by EdN View Post
I create a launcher by right-clicking my desktop and then clicking "create launcher...".
This produces a box which contains entries for Type:, Name:, Command:, and Comment: .
Did you put the line "Exec=/home/terry/RPCemu-168/runrpcemu" into the command: box?
No, the "Exec=" stuff is generated. You add the path to your shell, in my case it was '/home/terry/RPCemu-168/runrpcemu'.
Once you have created your launcher, you can go to your Desktop dir and drag your new launcher icon to an editor and check/edit the appropriate Exec line.
Here is the text of my launcher to run rpcemu...
Code:
#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=true
Name[en_US]=RPCemu
Exec=/home/terry/RPCemu-168/runrpcemu
Name=RPCemu
Icon=/home/terry/RPCemu-168/src/rpcemu.ico
Hope that sorts it out.

Cheers,
Terry
 
  


Reply



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
Creating launcher... phantom_cyph Linux - General 3 03-03-2007 04:52 PM
creating launcher jasondodd Linux - Newbie 4 03-13-2006 09:14 AM
Error creating a launcher. pxumsgdxpcvjm Linux - Newbie 2 03-05-2006 08:01 AM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 01:36 AM
Creating a launcher for mplayer wnaLinux Slackware 6 11-02-2004 04:16 AM

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

All times are GMT -5. The time now is 11:31 PM.

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