Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4932  / 2 Years ago, fri, march 18, 2022, 8:06:13

On Ubuntu 20.04.2 LTS I'm trying to create a desktop icon for some applications. I tried to follow this tutorial How to create desktop shortcut launcher on Ubuntu 20.04 Focal Fossa Linux . The first approach (using nautilus) does not fit for me, as I some of those applications are not there (for example Pycharm) and some other are created by me. So I tried the second approach, and I created a ~/Desktop/PyCharm.desktop file like this one:


#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/Programs/pycharm-community-2021.1.3/bin/pycharm.sh
Name=PyCharm
Comment=PyCharm
Icon=/Programs/pycharm-community-2021.1.3/bin/pycharm.png

but when I right click on the file, I don't have the option Allow launching. If I check the properties, I have all the permissions and the Allow execution checkbox is checked.
What am I missing?


More From » 20.04

 Answers
0

Just found the mistake...the file is correct (the .sh is needed, as it is what I want to launch). The error is that I should have written Exec=/home/deffo/Programs/pycharm-community-2021.1.3/bin/pycharm.sh (also the Icon path is wrong of course). Now I am able to launch it


[#1372] Saturday, March 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nalystcul

Total Points: 390
Total Questions: 106
Total Answers: 115

Location: Tokelau
Member since Sun, May 7, 2023
1 Year ago
nalystcul questions
;