How to: Create shortcut icon for Anaconda/Anaconda3 Navigator/Launch Anaconda Navigator in Linux/Debian/Ubuntu/Kali Linux (How to create desktop shortcuts in Linux)

(For how to install Anaconda and Anaconda Navigator: How to: Install Anaconda/Anaconda3 in Linux/Debian/Ubuntu/Kali Linux)

To Launch Anaconda Navigator via command line

If Anaconda is installed correctly. We should be able to launch anaconda navigator by using following command

anaconda-navigator
Launch anaconda-navigator
Launch anaconda-navigator

If the above command doesn’t work we need to add the anaconda3 path to environment, we can use following command (Replace “yourusername” to your real system username)

export PATH=/home/yourusername/anaconda3/bin:$PATH

(e.g. export PATH=/home/abc/anaconda3/bin:$PATH)

Now we should be able to use “anaconda-navigator” command to launch Anaconda Navigator.

To Launch Anaconda Navigator via Desktop shortcut/icon

We need to manually create desktop shortcut icon first

1 Create an empty file on desktop name it anaconda-navigator.desktop

2 Open the file and enter following contents

(Replace “abc” with your system username, or replace whole path if you have installed to other location rather than home directory)

#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Anaconda
Version=2.0
Type=Application
Exec=/home/abc/anaconda3/bin/anaconda-navigator
Icon=/home/abc/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Comment=Open Anaconda Navigator
Terminal=false
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Anaconda
Version=2.0
Type=Application
Exec=/path/to/anaconda3/bin/anaconda-navigator
Icon=/path/to/anaconda3/lib/pythonVersion/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Comment=Open Anaconda Navigator
Terminal=false
Anaconda desktop icon/shortcut
Anaconda desktop icon/shortcut

3 Although we can use the shortcut on desktop, it will not be listed in application screen/menu, we can use following command to make it appear in our application screen/menu as well

cp anaconda-navigator.desktop ~/.local/share/applications/
Copy shortcut to application menu/list
copy shortcut to application menu/list

4 Now it will appear in our application menu/list

Application menu/list
Application menu/list

Resource

Anaconda-Navigator – Ubuntu16.04


Leave a Reply

Your email address will not be published. Required fields are marked *