I am using Ubuntu and CLion 2016.1.
I installed it by downloading tar.gz
archive.
Now I have such CLion-2016.1/bin
folder. For launching Clion I run ./clion.sh
.
How can I add CLion icon to desctop?
I am using Ubuntu and CLion 2016.1.
I installed it by downloading tar.gz
archive.
Now I have such CLion-2016.1/bin
folder. For launching Clion I run ./clion.sh
.
How can I add CLion icon to desctop?
You can add a desktop entry to your system directly in CLion :
Main Menu > Tools > Create Desktop entry...
Download the file clion.desktop, put it in ~/.local/share/applications
and mark it executable. You may need to adapt the Icon
and Exec
path to point to CLion-2016.1/bin/clion.svg
and resp. CLion-2016.1/bin/clion.sh
.
This will allow the launcher etc. to find clion, you can also copy the file to ~/Desktop
to have it on your desktop.
After you're done with the installation as described in Install-Linux-tar.txt
, you can create a desktop shortcut so that you can launch CLion
easily using Windows key and then typing CLion
(need not be case-sensitive).
cd
to your CLion installation directory; I use /usr/share/clion-2020.1.1
; Then do:
$ bash bin/clion.sh
That will launch CLion
window. At the bottom right of the window, there's configure
, click that and then click Create Desktop Entry
. That's it!
Now, you'll be able to search using the term clion
after pressing Windows key.
Tested on Ubuntu 19.10 and CLion 2020
From CLion welcome window select:
(if you don't have 'Create...' action available, you can add it using the button "Add Action" on the right side of the search bar)
Assume that there is no Tools > Create Desktop entry option in the manual, you can create your own desktop icon easily.
[Desktop Entry]
Version=1.0
Type=Application
Name=CLion
Icon=path-to/clion.png
Exec=path-to/clion.sh
You can find the corresponding path by:
sudo find / -type f -name "clion.sh"
sudo find / -type f -name "clion.png"
chmod +x clion.desktop
Then you should be able to open clion by double-click it in your desktop.
© 2022 - 2024 — McMap. All rights reserved.