LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-17-2013, 04:01 PM   #1
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 163

Rep: Reputation: Disabled
how to make a command line application autostart?


Hello,
I have a problem with Adobe Flash player that apparently can be workarounded by using Devil's Pie, making it auto start In Lubuntu 13.04 with Gnome Shell.

Here's what I tried to achieve that after following the instructions on askubuntu.com (as advised in the #ubuntu irc channel):
I made a file /etc/init/devilspie.conf with the following content:
Code:
description run devil's pie on startup

start on startup
stop on runlevel [016]

respawn

exec su - ben -c "devilspie"
I wanted to test it first by seeing if I could run it manually, I get this:
Code:
~$ sudo start devilspie 
start: Unknown job: devilspie
ben@Ignaz-lubuntu:~$ ps auxwww|grep devilspie
ben      13244  0.0  0.4 390932 15644 ?        Sl   22:16   0:00 leafpad /etc/init/devilspie.conf
ben      14303  0.0  0.0  10948   916 pts/0    S+   22:19   0:00 grep --color=auto devilspie
These commands were given to me at #ubuntu as well, but I didn't get assistance to conclusion of the issue, so I don't know what this output means. Can someone help me deal with this?
It seems however that Devil's Pie is not running - it's not listed in running processes of System monitor.
 
Old 06-17-2013, 04:54 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,686

Rep: Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692
Hi,

are you sure you want this running when the machine boots? Since devilspie (IIRC) is a program to help manage windows, wouldn't it be better to run it when you log into an X session?

Evo2.

PS. I'm not so familiar with upstart, but I suspect the people who provided you with information on #ubuntu and askubuntu.com know even less.

PPS. Entering "gnome3 autostart" in your favourite search engine should provide the information you are looking for.

Last edited by evo2; 06-17-2013 at 05:02 PM. Reason: PPS.
 
Old 06-18-2013, 01:57 PM   #3
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 163

Original Poster
Rep: Reputation: Disabled
I did some searches like that before (don't rememeber the exact search terms), but I guess they didn't help me bcs I searched in English.
My system UI is in German so what I was looking for in my Gnome menus did not match its German label.
The solution is called "Startprogramme" in German. There I added a new entry and inserted the path to the devil's pie executable, obtained through
Code:
which devilspie
in the "command" field.
Devil's Pie now autostarts, but I don't care whether it does so at boot or at login - fullscreen Flash works again in all players and my issue is solved :-)

Really it's funny though no one at #ubuntu thought of pointing me to startup applications...
 
Old 06-18-2013, 05:25 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,686

Rep: Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692
Hi,
Quote:
Originally Posted by bennypr0fane View Post
Devil's Pie now autostarts, but I don't care whether it does so at boot or at login
Actually, I would not be surprised if devilspie failed to start if there was no X session to connect to.
Quote:
- fullscreen Flash works again in all players and my issue is solved :-)
Glad you were able to get it working.
Quote:
Really it's funny though no one at #ubuntu thought of pointing me to startup applications...
It really doesn't surprise me. Did anyone there tell you to switch from gnome to unity? ;-)

Cheers,

Evo2.
 
  


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
Remove start up application using command line unclesamcrazy Linux - Newbie 3 06-06-2013 07:14 AM
how to open an application from terminal (command line) beefcake1000 Linux - Newbie 10 03-21-2013 04:22 PM
My error in mkisofs command to make a command line iso mg92865 Linux - Newbie 1 06-20-2008 11:43 AM
How to switch an application from one desktop to another using command line demianxyz Linux - Software 2 10-15-2006 06:36 PM
Command line Application search TheAvenger Linux - Software 3 06-20-2006 10:12 AM

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

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