create an URL launcher on the LXDE desktop

All questions and problems regarding LXDE components including LXSession, LXAppearance, GPicView, Leafpad, LXTerminal, Xarchiver, LXNM to be discussed here.

For PCManFM questions, please ask in the dedicated forum below.
Locked
ccc
Posts: 22
Joined: Sat Mar 03, 2012 2:37 pm

create an URL launcher on the LXDE desktop

Post by ccc »

Hi

Howto create an URL launcher on the LXDE desktop, I mean to open a specific URL with a browser?
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: create an URL launcher on the LXDE desktop

Post by Rex Bouwense »

See
http://lxlinux.com/#11
Is that what you want?
Rex
vasa1
Posts: 39
Joined: Sat May 11, 2013 9:51 am

Re: create an URL launcher on the LXDE desktop

Post by vasa1 »

Here is one example I made using the Leafpad text editor:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Google
GenericName=none
Comment=none
Exec=chromium-browser http://www.google.com
Icon=/usr/share/icons/lubuntu/apps/22/google-chrome.svg
Type=Application
Categories=
I saved this file to the desktop. On double-clicking for the first time, you'll be asked whether you want to mark it as an executable. Do so. And your Chromium browser will now open to google.com.

The line beginning with "Name=" sets the name of the launcher you'll see on your desktop
The line beginning with "Exec=" determines which browser you want to use
and
The line beginning with "Icon=" determines which icon you want to see on the desktop for the launcher. If you provide the complete path, you can point to any icon of your choice.

Note that you can modify the "Exec=" line with any flags your browser honors. For example, you can use:

Code: Select all

Exec=chromium-browser --incognito http://www.google.com
to open a particular site in private browsing mode.

If you're using the Chromium browser (or even Chrome), here's a site that provides a lot of switches: http://peter.sh/experiments/chromium-co ... -switches/
A caveat: not all of them work.
ccc
Posts: 22
Joined: Sat Mar 03, 2012 2:37 pm

Re: create an URL launcher on the LXDE desktop

Post by ccc »

Thx a lot!
Locked