Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add CLion icon to desktop in Ubuntu

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?

enter image description here

like image 876
Kenenbek Arzymatov Avatar asked May 30 '16 10:05

Kenenbek Arzymatov


People also ask

How do I add icons to Ubuntu desktop?

desktop file to desktop. Now all you have to do here is to look for the application icon (or its desktop file). When you find it, either drag-drop the file to the desktop or copy the file (using Ctrl+C shortcut) and paste it on the desktop (using Ctrl+V shortcut).

How do I create a desktop shortcut in Linux?

To start, head over to the /usr/local/share/applications directory using either a graphical Linux file manager or the command line. Then, inside the folder, locate the desktop entry for the application you want to create a shortcut for. After moving the file, you'll notice that the shortcut has no icon.

How do I create a shortcut to a file in Ubuntu?

it simple: just press Ctrl + Shift and drag.


4 Answers

You can add a desktop entry to your system directly in CLion :

Main Menu > Tools > Create Desktop entry...

like image 96
Zgore Avatar answered Oct 17 '22 18:10

Zgore


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.

like image 7
sitic Avatar answered Oct 17 '22 19:10

sitic


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).

Creating Desktop Entry:

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

like image 4
kmario23 Avatar answered Oct 17 '22 19:10

kmario23


From CLion welcome window select:

  1. customize
  2. All settings
  3. Appearance & Behavior
  4. Menus and Toolbars
  5. Main Menu -> Tools -> Create Desktop Entry...

(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)

like image 1
Carla Alves Avatar answered Oct 17 '22 18:10

Carla Alves