LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Automatic start Chrome in boot? (https://www.linuxquestions.org/questions/linux-newbie-8/automatic-start-chrome-in-boot-4175502740/)

gubbenpetson 04-23-2014 03:12 PM

Automatic start Chrome in boot?
 
Hello world :)
I am running Bodhi-Linux, wants to get my Google Chrome to start automatically on boot, with specified webpage open, and maximized (F11). Cannot find how to make it.
Tnx for help!

szboardstretcher 04-23-2014 03:28 PM

Code:

chrome --start-maximized --new-window http://www.google.com
Works on windows 7 and Arch.

Automatic 04-23-2014 07:00 PM

Quote:

Originally Posted by szboardstretcher (Post 5157967)
Code:

chrome --start-maximized --new-window http://www.google.com
Works on windows 7 and Arch.

Unsure about Chrome, but, Chromium, that launches a window maximized, not fullscreen (Like F11 would, as per OP's comment). Apparently you can use --start-fullscreen, but, it didn't work for me (Arch x64, XFCE, Chromium), it just launched maximized (Although, running with just --new-window also starts maximized, so, unsure if it's even doing that).

gubbenpetson 04-24-2014 02:23 AM

Quote:

Originally Posted by Automatic (Post 5158060)
Unsure about Chrome, but, Chromium, that launches a window maximized, not fullscreen (Like F11 would, as per OP's comment). Apparently you can use --start-fullscreen, but, it didn't work for me (Arch x64, XFCE, Chromium), it just launched maximized (Although, running with just --new-window also starts maximized, so, unsure if it's even doing that).

Thnx! Where do I save this command line so it automatically runs when the computer starts?

Automatic 04-24-2014 02:29 AM

Quote:

Originally Posted by gubbenpetson (Post 5158230)
Thnx! Where do I save this command line so it automatically runs when the computer starts?

Really depends on your setup, what DM/Login screen are you using? If you're dropped right into the DM (I.E. no login after xinit/startx), something like xinit would do fine, if you're not, you'll have to work out if the DM/DW has a startup setup of it's own, as, there's no (real) way to correctly guess when the DM unlocks the UI for the user externally.

szboardstretcher 04-24-2014 09:04 AM

Sorry i misunderstood the request.

(If you are interested) -- This also sounds like you are trying to do a locked down kiosk kind of thing for public users. If you are doing that, you can utilize one of the free kiosk solutions to save yourself time.

http://www.webconverger.com/

schneidz 04-24-2014 09:08 AM

Quote:

Originally Posted by gubbenpetson (Post 5158230)
Thnx! Where do I save this command line so it automatically runs when the computer starts?

check out either ~/.profile or ~/.bash_profile.

gubbenpetson 04-27-2014 03:17 PM

Quote:

Originally Posted by schneidz (Post 5158396)
check out either ~/.profile or ~/.bash_profile.

Sorry, as a linux-beginner I don't really understand this advice. Is it a folder in the file system where I can place a startup file in, or do I edit a startup file called profile or bash_profile?

schneidz 04-28-2014 07:17 AM

Quote:

Originally Posted by gubbenpetson (Post 5160201)
Sorry, as a linux-beginner I don't really understand this advice. Is it a folder in the file system where I can place a startup file in, or do I edit a startup file called profile or bash_profile?

hi, make a backup of ~/.bash_profile. open up a text editor and open ~/.bash_profile. then put whatever command you want to start up on the last line.

TobiSGD 04-28-2014 08:07 AM

Bodhy is using the Enlightenment window manager, which has an autostart function in the menu under Menu -> Settings -> Settings panel-> Apps-> Startup Applications


All times are GMT -5. The time now is 03:17 AM.