Author Topic: Automatic start of application  (Read 3586 times)

ImperatorHUN

  • Newbie
  • *
  • Posts: 1
    • View Profile
Automatic start of application
« on: January 30, 2018, 07:06:28 PM »
Hi Everyone,
I'm new to the wattOS world, so you can treat me as a noob.

At our local church we have an old laptop that is to be used as a stage monitor for displaying song lyrics. I decided on wattOS to minimize the unnecessary resource consumption.

I try to configure wattOS so when it starts it brings up the default browser in full screen to a specific local address. So the singers only need to power on the laptop at the beginning of the session.

I found that the terminal command for that is
surf -F <web_address>

However, I was unable find a place to put it
I tried /etc/rc.local but it doesn't seem to work

I downloaded the Microwatt-R10 version. Reinstall or installation of any software shouldn't be a problem if necessary.

Can you guys please help with it? Thank you.

cheiron

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 236
  • Site Moderator for Planetwatt.com
    • View Profile
Re: Automatic start of application
« Reply #1 on: January 30, 2018, 10:38:21 PM »
Not sure on Microwatt.. but using the full wattos you should be able to use a few different methods... Please note these are not tested on WattOS and have come from a 3rd party site.


You can also use Upstart:
[/color]Create a file $HOME/.config/upstart/firefox-with-url.conf[/color]
[/color]Content:[/size]
[/color]start on desktop-start stop on desktop-end exec firefox <url>[/size]
Or...


[/color]You can configure what applications should be started at login, in addition to the default startup applications configured on the system.[/size]


Use the Dash to find and open [/color]Startup Applications. Alternatively you can press Alt+F2 and run the gnome-session-properties command.
Click [/color]Add and enter the command to be executed at login (name and comment are optional). For example, to make Firefox start automatically, it's sufficient to type firefox in the Command field and confirm with Add.



You can either type the command, or click the [/color]Browse... button and select a command. Applications to autostart are typically located in the /usr/bin folder.