URL: https://it.desy.de/services/uco/documentation/desy_phone_book/ubuntu_20/index_eng.html
Breadcrumb Navigation
Ubuntu 20
The following steps will show how to create a shortcut of the DESY Phone Book to your Ubuntu 20 Desktop.
using graphical Interface (recommend)
1. Creation of a Textfile
Navigate to the "Desktop" and create a new text document named "pbookapp.desktop".
2. Adding linkdata
Now to change the file to a shortcut, the linkdata must be written into the earlier created text file pbookapp.desktop.
To achive this copy the following lines with a Texteditor (a plaintext-editor, not a office-program) into the textfile:
[Desktop Entry] Encoding=UTF-8 Name=DESY Phone Book Type=Link URL=https://pbookapp.desy.de/ Icon=text-html
3. Set permission for execution
To execute the file instead of opening the text editor by doing a mouseclick on it, you need to grant the right to execute the file.
Therefor you do a rightclick on the File and choose "Allow Launching".
using Commandline
1. Creation of a Textfile
Navigate to the "Desktop" and create a new text document named "pbookapp.desktop".
Using the commandline it can be done with e.g. the following command:
touch pbookapp.desktop
2. Adding linkdata
Now to change the file to a shortcut, the linkdata must be written into the earlier created text file pbookapp.desktop.
To achive this use the commandline for executing the following commands:
file="pbookapp.desktop" echo "[Desktop Entry]" > $file echo "Encoding=UTF-8" >> $file echo "Name=DESY Phone Book" >> $file echo "Type=Link" >> $file echo "URL=https://pbookapp.desy.de/" >> $file echo "Icon=text-html" >> $file cat $file
3. Set permission for execution
To execute the file instead of opening the text editor by doing a mouseclick on it, you need to grant the right to execute the file.
The right can be granted by using the following command:
chmod +x pbookapp.desktop