Page 1 of 1

create an URL launcher on the LXDE desktop

Posted: Mon May 20, 2013 12:18 am
by ccc
Hi

Howto create an URL launcher on the LXDE desktop, I mean to open a specific URL with a browser?

Re: create an URL launcher on the LXDE desktop

Posted: Mon May 20, 2013 12:30 am
by Rex Bouwense
See
http://lxlinux.com/#11
Is that what you want?

Re: create an URL launcher on the LXDE desktop

Posted: Mon May 20, 2013 6:26 am
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.

Re: create an URL launcher on the LXDE desktop

Posted: Mon May 20, 2013 10:50 am
by ccc
Thx a lot!