Create a shortcut for URL?
In Ubuntu an URL shortcut is stored in a .desktop file as follow (for example):
[Desktop Entry]
Encoding=UTF-8
Name=Link to Ask Ubuntu
Type=Link
URL=http://www.askubuntu.com/
Icon=text-html
You can drag links from Firefox or Chrome and drop them on the Desktop or any other folder where you have permissions to save files.
Note: Link will appear on your Desktop or your file explorer (i.e. caja) under the name in the line Name=…
, not by its actual filename. And without any ….desktop
extension.
This solution is multi-platform also:
1- Create a new simple text file with .html extension and the name you want.
2- Edit the file with the program you want and add this content:
<html>
<head>
<meta http-equiv="refresh" content="0; url=https://askubuntu.com" />
</head>
<body>
</body>
</html>
3- Save the file and enjoy it.
Try this. Install Gnome Panel, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
sudo apt-get install gnome-panel
Once installed type this:
gnome-desktop-item-edit --create-new ~/path/to/shortcut
(location of shortcut). In the example below, I will create a shortcut for Ubuntu.com and place it inside the Documents folder. Once I hit Enter a window will open with the properties. See images below.
gnome-desktop-item-edit --create-new ~/Documents
Once done, just click on them newly created shortcut.