Run Appimage file in background in ubuntu

0

I downloaded the cerebro application for ubuntu 16.04 but to run it I always need to open the terminal and write :

'./cerebro-0.2.6-x86_64.AppImage'

And then the software is open but the terminal is "locked" (yes I know I can open another with CTRL + ALT + T and another flip with CTRL + SHIFT + T ).

I tried to add the task to execute when S.O is loaded in gnone-session-preferences but the application needs sudo permission to execute, therefore it generates an error.

How can I make this file .AppImage run in the background and start every time S.O starts too?

    
asked by anonymous 22.02.2017 / 14:14

1 answer

0

You can use upstart that is used to start applications at boot time or at certain system times:

# Start

description "Start App"

start on (net-device-up
          and local-filesystems)
script
<caminho>/cerebro-0.2.6-x86_64.AppImage
end script

This template should answer you, you should create a file with the .conf extension and put it in the /etc/init folder.

See the documentation to learn more: link

Note : In some versions of ubuntu , upstart was disabled, to enable, just follow this tutorial: link

    
22.02.2017 / 14:37