Install clion in Ubuntu and add clion to the desktop shortcut

Installation of Clion:

        CLion is an integrated development tool for C and C++ produced by the famous JetBrains company. Download address .
        After downloading, unzip it, then enter the unzipped folder and execute ./clion.sh to run the software:

cd bin/
./clion.sh

If activated, I personally use the finished product account purchased by a certain treasure.

But, but...

 

question:

        After installing clion on Ubuntu, the clion software cannot be found in the application. Every time you run it, you need to navigate to the installation directory and execute ./clion.sh in the terminal to open clion, which is very troublesome. If we create a shortcut to clion, it will be very convenient.

Solution:

        Step 1: Open /usr/share/applications

cd /usr/share/applications

        Step 2: Create the clion.desktop file (create and edit directly with gedit)

sudo gedit clion.desktop

        Step 3: Copy the following code into it:

[Desktop Entry]
Encoding=UTF-8

Name=CLion

Comment=clion-2023.2.1

Exec=/home/robot/clion/CLion-2023.2.1/clion-2023.2.1/bin/clion.sh

Icon=/home/robot/clion/CLion-2023.2.1/clion-2023.2.1/bin/clion.svg

Categories=Application;Development;Java;IDE

Version=2023.2.1

Type=Application

#Terminal=1

        Among them, Exec and Icon should be modified according to the installation path of your own clion, and Comment and Version should correspond to the version number of your installed clion. Finally, save and exit, and you can see clion in the application.

Guess you like

Origin blog.csdn.net/qq_34761779/article/details/132648930