Auto Start Firefox and Launch a URL by Default in Lubuntu 14.04

45

Solution 1

You can also use Upstart:

Create a file $HOME/.config/upstart/firefox-with-url.conf

Content:

start on desktop-start
stop on desktop-end

exec firefox <url>

More info:

http://ifdeflinux.blogspot.de/2013/04/upstart-user-sessions-in-ubuntu-raring.html

http://upstart.ubuntu.com/

Solution 2

Goto Menu > Preferences > Default Applications for LXSession > Autostart

There under Manual autostarted applications type "firefox" and click on "add".

E.g.;

Add

Then, close the window.

Next, open firefox and click on the menu button.

Menu

Goto Preferences > General (tab)

Enter the desired website you want to visit on Firefox startup.

Website

Finally, close and restart your PC.

You will be able to autolaunch Firefox and load your entered URL when your system is logged IN or rebooted.

Hope! this helped you. Thank You!

Share:
45

Related videos on Youtube

PooX
Author by

PooX

Updated on September 18, 2022

Comments

  • PooX
    PooX over 1 year

    I have a problem. I have a small script where I am adding Country for some tv show in the database.

    I have table country with id, name and flag fields.

    There I have

    1. 1 - USA - usa.png
    2. 2 - UK - uk.png

    etc

    Then i have this:

    <select name="drzava[]" class="ui fluid search dropdown full" id="drzava" multiple="">
    <?php
    if(isset($value['drzava'])) {
        foreach ($drzava as $key => $value_d) {
            $niz = explode(",", $value['drzava']);
            $selected = "";
            if (in_array($value_d['id'],$niz)) {
                $selected="selected";
            }
            ?>
            <option value="<?php echo $value_d['id'];?>" <?php echo $selected;?>><?php echo $value_d['drzava'];?></option>
            <?php
        }
    }
    ?>
    

    That $drzava use

    public function listoftvshowdrzava() {
      $db = APP::getInstance('database');
      $stm = $db -> query("SELECT `id` , `name`, `flag` FROM `country`");
      $rez2 = $stm -> fetchAll(PDO::FETCH_ASSOC);
      $basket = APP::getInstance('Basket');
      $basket->set('listtvshowdrzava',$rez2);
      return $rez2;
    }
    

    So my problem is when I for some tv show add USA than the UK, it write 1,2 in the tv show. And that's ok. But when I enter the first UK, the US. It anyway inserts 1,2. Not 2,1 as I want. Where I making mistake. I try so many things, but no one will work.

    Thanks.

  • Senthil
    Senthil almost 10 years
    It work's fine...
  • Miguel Ortiz
    Miguel Ortiz about 5 years
    This will work for GNOME not LXDE.