LinuxQuestions.org
Review your favorite Linux distribution.
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 06-02-2015, 07:20 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
How start "cinelerra" on background?


Hi all,

Ubuntu 14.04 64 bit

Cinelerra is installed on /home/user/cinelerra and can be started with following steps on terminal;

$ cd /home/user/cinelerra
$ ./cinelerra

But I couldn't lock its icon to laucher. Advice would be appreciated. Thanks

Regards
satimis
 
Old 06-02-2015, 01:55 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i tend to build from source and not install all things in /usr

what i do is a create a small shell script that cd's to the program folder
sets any needed vairables and then launches it

i then make a *.desktop file that points TO that shell script

an example

the QT 4 GUI for Celestia 1.7 ( space sim )
has a bug in the splash screen when using QT

i have a workaround BUT the upshot is i have to run it from the install folder for it to work


the script is"QT4.Celestia5229.SVN.sh"
Code:
 #!/bin/sh

cd /DATA/SUSE/CelestiaSVN/bin
 ./celestia
then the desktop launcher points to this

"QT4.Celestia5229.SVN.desktop"
Code:
[Desktop Entry]
Categories=Astronomy;Education;Science;
Comment=3d Space Sim
Exec=/DATA/SUSE/CelestiaSVN/bin/QT4.Celestia5229.SVN.sh
GenericName=3D Space Sim.
Icon=/DATA/SUSE/share/pixmaps/CelestiaSplash.png
Name=QT4.Celestia5229.SVN
 
Old 06-03-2015, 01:32 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by John VV View Post
i tend to build from source and not install all things in /usr

what i do is a create a small shell script that cd's to the program folder
sets any needed vairables and then launches it

i then make a *.desktop file that points TO that shell script

an example

the QT 4 GUI for Celestia 1.7 ( space sim )
has a bug in the splash screen when using QT

i have a workaround BUT the upshot is i have to run it from the install folder for it to work


the script is"QT4.Celestia5229.SVN.sh"
Code:
 #!/bin/sh

cd /DATA/SUSE/CelestiaSVN/bin
 ./celestia
then the desktop launcher points to this

"QT4.Celestia5229.SVN.desktop"
Code:
[Desktop Entry]
Categories=Astronomy;Education;Science;
Comment=3d Space Sim
Exec=/DATA/SUSE/CelestiaSVN/bin/QT4.Celestia5229.SVN.sh
GenericName=3D Space Sim.
Icon=/DATA/SUSE/share/pixmaps/CelestiaSplash.png
Name=QT4.Celestia5229.SVN
Hi,

Thanks for your advice.

Cinelerra is installed on /home/user/cinelerra/
it can be started running follows on terminal;
$ cd /home/user/cinelerra
$ ./cinelerra

Before posting this thread I have tried following steps;

$ sudo gedit /usr/share/applications/cinelerra-hv.desktop
adding following lines on the file;
Code:
[Desktop Entry]
Name=Cinelerra-HV
Comment=Video Editor
Categories=Application;AudioVideo;Multimedia;VideoEditing;
Encoding=UTF-8
Exec=/home/satimis/cinelerra/cinelerra
Icon=Cinelerra
Terminal=false
Type=Application
ls -al /usr/share/applications/ | grep cinelerra-hv.desktop
Code:
-rw-r--r--   1 root root   215 Jun  2 19:33 cinelerra-hv.desktop
The file can be found on "Search your computer and online sources"
Files & Folders
-> cinelerra-hv.desktop

But I couldn't execute it.

Besides on "Search your computer and online sources"
Applications
-> Cinelerra-HV

It can be executed starting cinelerra
Cinelerra:Program

But I couldn't lock it to the launch. Any advice?

Thanks

Regards
satimis
 
Old 06-03-2015, 03:58 AM   #4
igor_ubuntu
Member
 
Registered: Jan 2014
Posts: 32

Rep: Reputation: Disabled
Quote:
But I couldn't execute it.
Maybe you should just reboot your computer?

Try this
1 Make the script name.sh
Code:
#!/bin/bash
$ cd /home/satimis/cinelerra/
$ ./cinelerra
2 Make the script executable.
3 In *.desktop file in the field Exec=.. .. write the path to the script.
4 In the field Terminal=.. .. write- true

Quote:
But I couldn't lock it to the launch.
1.Take a look inside HV-package.
2.It is obvious that the package HV does not contain the program icon.
Or do it yourself or take it from a different package.
3. In the field Icon=Cinelerra
you have to register the full path to the icon.
For example Icon=/usr/share/icons/cinelerra-hv.png
Only then you will see an icon in the start menu.
 
Old 06-03-2015, 04:29 AM   #5
igor_ubuntu
Member
 
Registered: Jan 2014
Posts: 32

Rep: Reputation: Disabled
I forgot to specify. Place this script in the catalog /usr/bin or /usr/local/bin
 
Old 06-03-2015, 06:00 AM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by igor_ubuntu View Post
- snip -

1.Take a look inside HV-package.
2.It is obvious that the package HV does not contain the program icon.
Or do it yourself or take it from a different package.
3. In the field Icon=Cinelerra
you have to register the full path to the icon.
For example Icon=/usr/share/icons/cinelerra-hv.png
Only then you will see an icon in the start menu.
Hi,

I couldn't find cinelerra icon there.

~⟫ ls /home/satimis/cinelerra/ | grep cinelerra-hv.png
No output

~⟫ ls /home/satimis/cinelerra/ | grep .png
Code:
                     
black_checkedhi.png
black_checkedhi_png.h
black_checked.png
black_checked_png.h
black_dn.png
black_dn_png.h
black_hi.png
black_hi_png.h
black_up.png
black_up_png.h
picon.png
picon_png.h
white_checkedhi.png
white_checkedhi_png.h
white_checked.png
white_checked_png.h
white_dn.png
white_dn_png.h
white_hi.png
white_hi_png.h
white_up.png
white_up_png.h
Whether I need adding 'cinelerra-hv' icon there first before performing other steps?

Thanks

Regards
satimis
 
Old 06-03-2015, 11:15 AM   #7
igor_ubuntu
Member
 
Registered: Jan 2014
Posts: 32

Rep: Reputation: Disabled
Quote:
I couldn't find cinelerra icon there.
I attach files to messages.
Quote:
Whether I need adding 'cinelerra-hv' icon there first before performing other steps?
It will be more rational if you first put the icon in the appropriate place.
Attached Images
 
 
Old 06-03-2015, 08:26 PM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by igor_ubuntu View Post
I attach files to messages.

It will be more rational if you first put the icon in the appropriate place.
It is very strange that I couldn't locate this file running;
Code:
:~⟫ sudo find / -name cinelerraHV.png
But after starting cinelerra it is on the launcher. Please refer to the attached file.

satims
Attached Images
 

Last edited by satimis; 06-03-2015 at 08:27 PM.
 
Old 06-04-2015, 01:08 AM   #9
igor_ubuntu
Member
 
Registered: Jan 2014
Posts: 32

Rep: Reputation: Disabled
Quote:
Please refer to the attached file.
satims
You want me to send to you another file?
I do not think that's the case file. But you can take the icon from the package.
http://sourceforge.net/projects/hero...ar.xz/download
(/cinelerra-4.6-src/cinelerra/data)
Just reduce its size.
-------------------
You managed to run the program HV ? My script works?
---------------------

As for the program CV, you got the answer here.
http://permalink.gmane.org/gmane.com....general/17516
Follow please proposed manipulation. It is important.
And please write your report in the newsletter.
 
Old 06-04-2015, 04:56 AM   #10
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by igor_ubuntu View Post
You want me to send to you another file?
I do not think that's the case file. But you can take the icon from the package.
http://sourceforge.net/projects/hero...ar.xz/download
(/cinelerra-4.6-src/cinelerra/data)
Just reduce its size.
No, thanks. I just wonder after starting cinelerra its icon appears on the "launcher". But I couldn't find its file?

Quote:
-------------------
You managed to run the program HV ? My script works?
---------------------
Still not successful.

After reboot I couldn't find cinelerra.HV icon on the launcher

-> "Search your computer and online sources"
Applications
-> Cinelerra-HV

It crashes immediately unable to start.

⟫ cat /usr/share/applications/cinelerra-hv.desktop
Code:
[Desktop Entry]
Name=Cinelerra-HV
Comment=Video Editor
Categories=Application;AudioVideo;Multimedia;VideoEditing;
Encoding=UTF-8
Exec=/usr/local/bin/cinelerra-hv.sh
Icon=/usr/share/icons/cinelerraHV.png
Terminal=true
Type=Application
⟫ ls -al /usr/share/icons/cinelerraHV.png
Code:
-rw-rw-r-- 1 satimis satimis 1008 Jun  4 17:15 /usr/share/icons/cinelerraHV.png
⟫ ls -al /usr/local/bin/cinelerra-hv.sh
Code:
-rwxr-xr-x 1 root root 56 Jun  3 18:07 /usr/local/bin/cinelerra-hv.sh
Whether I need to change "root root" to "satimis satimis"?

⟫ cat /usr/local/bin/cinelerra-hv.sh
Code:
#!/bin/bash
$ cd /home/satimis/cinelerra/
$ ./cinelerra

Quote:
As for the program CV, you got the answer here.
http://permalink.gmane.org/gmane.com....general/17516
Follow please proposed manipulation. It is important.
And please write your report in the newsletter.
I'll visit the link after sorting out my problem. Thanks


Regards
satimis
 
Old 06-05-2015, 09:09 AM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Problem solved

Hi all,

performed following steps:-

~⟫ sudo gedit /usr/local/bin/cinelerra-hv.sh
(edit the file as follow)
Code:
#!/bin/bash
cd /home/satimis/cinelerra/
./cinelerra
~⟫ sudo chmod +x /usr/local/bin/cinelerra-hv.sh

~⟫ ls -al /usr/local/bin/cinelerra-hv.sh
Code:
-rwxr-xr-x 1 satimis satimis 52 Jun  5 21:23 /usr/local/bin/cinelerra-hv.sh
~⟫ sudo mv /usr/share/applications/cinelerra-hv.desktop /home/satimis/.local/share/applications/

~⟫ ls -al /home/satimis/.local/share/applications/
Code:
total 12
drwx------  2 satimis satimis 4096 Jun  5 21:42 .
drwx------ 15 satimis satimis 4096 Jun  5 21:35 ..
-rw-r--r--  1 root    root     254 Jun  5 21:35 cinelerra-hv.desktop
~⟫ sudo gedit /home/satimis/.local/share/applications/cinelerra-hv.desktop
(edit the file as follow)
Code:
[Desktop Entry]
Name=Cinelerra-HV
Comment=Video Editor
Categories=Application;AudioVideo;Multimedia;VideoEditing;
Encoding=UTF-8
Exec=/usr/local/bin/cinelerra-hv.sh
Icon=/usr/share/icons/cinelerraHV.png
Terminal=false
StartupNotify=true
Type=Application
Reboot VM

On "Launch your computer and online sources'
type "cinelerra-hv"

Drag and drop "Cinelerra-HV" icon on the launcher.


Lot of thanks for your advice.

Regards
satimis
 
  


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
[SOLVED] "/etc/init.d/apache2" start VS "apache2ctl start" with passenger module (ruby/rails) arond Linux - Server 1 12-13-2010 10:56 AM
build Cinelerra 2.1 for x86_64, bash "arch" command not found? newtovanilla Linux - Newbie 4 07-08-2008 05:28 PM
LXer: "Cooking" a DVD with Cinelerra and DVDStyler. LXer Syndicated Linux News 0 05-06-2008 01:20 AM
Cinelerra "make" prob during install rooman Linux - Software 1 09-03-2007 05:41 PM
"make" error on installing cinelerra-2.1 rooman Linux - Software 1 03-11-2007 03:27 PM

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

All times are GMT -5. The time now is 11:51 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