I have used the guide from similar question (How can I create launchers on my desktop?)
but nothing works when it comes to Ananconda3 shortcut.
Here is my desktop file for anaconda:
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Exec=bash -c anaconda-navigator
Icon=/home/paygilant/anaconda3/lib/python3.6/site-packages/anaconda_navigator/s$
Terminal=false
StartupNotify=true
MimeType=text/x-python;
I have succeeded the image part, but can't actually launch it. There is an icon on my desktop and I have put in the command bash -c anaconda-navigator.
Please help me identify what am I missing?
Following steps work in Ubuntu 16.04, but I don't know if it works in 17.04.
Create a shell script
/home/paygilant/bin/anaconda.sh
Create a desktop file
/home/paygilant/anaconda.desktop
Run
sudo desktop-file-install anaconda.desktop
. After 10~20 seconds, you can see Anaconda shortcut in dash.First check if anaconda3 is installed on your system or not (Sometime the package may be broken due to network issues during installation). And whether you are able to launch
anaconda-navigator
without a desktop entry or not (See how to launch anaconda-navigator without a desktop-entry, later in this post).For creating a desktop entry
Step 1. Open your text editor and save the following content as
Anaconda.desktop
to your home directory.Change the user-name to your username in
Icon=/home/jishan/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
i.e. replacejishan
by your username.Step 2. Copy your
Anaconda.desktop
to/usr/share/applications/
as root (Because you might need permission to copy at /usr/share/applications/)Step 3. Check if
Anaconda
is added to your application dock. If you didn't find it, search it in search-bar. Or you can run directly from/usr/share/applications/Anaconda.desktop
.Launch Anaconda-navigator without a desktop entry
Your user (not root) may not have access to anaconda-navigator or it is not activated it yet.
This will result in single line showing
(bash)
, if installed. If it is not installed, install it from here.If installed, you can launch now by
This will result in opening anaconda-navigator. (For each time you've to activate root as soon as your session is destroyed).
Tried and tested. You need to give it the full path for some reason:
Then to add it to the Unity/Gnome dash:
Note: I did not add an icon here and I am not sure the path you use for it is a good one (didn't check).
The answer has two steps:
Create
Anaconda.desktop
Open your text editor and save the following content as
Anaconda.desktop
to your home directory.Anaconda.desktop
contents:Use your icon path instead of the one here.
Move your
.desktop
file to the application folder/usr/share/applications/
, now search for Anaconda in dock and click.This method works for me (Ubuntu 18.10)
Do you have the ownership over the file? A common mistake I see in this case is people using chmod +X as root or sudo.
Can you give the output of the following comment?
Second question is are you using Unity or Gnome3? Normally you should be using gnome3 instead of Unity in 17.10 you may want to look up a guide for gnome3 instead of older versions. This should work How can I create launchers on my desktop?
To run anaconda with launcher icon you need first to add the path to the root environment
PATH
restart your PC,
then surprise surprise the icon you created would work
This is working in Ubuntu 18
Go to
/usr/share/applications/
Create a file using sudo
Anaconda.desktop
e.g:
Paste the following:
Change
superman
to the your user folder.