Can't create anaconda shortcut to launch from desktop on ubuntu 17.10?How to create a launch icon for anaconda-navigator in Ubuntu 18.04Creating Launcher for AnacondaHow can I create launchers on my desktop?Processes and .desktop launchers (Identification)Why does custom launcher behavior differ in the Dash and other means of launching?How to install Aptana Studio 3 in Ubuntu 14.04? with Launcher shortcuts and Dash search?Stencyl.Desktop not working.desktop shortcut fails to launch programUbuntu 17.10 .desktop wont launch electron appI cannot launch Anaconda after I had to hard shut-down my PC. I use anaconda-navigator in terminal to launchHow to create a launch icon for anaconda-navigator in Ubuntu 18.04How do you get a *.desktop file to work for a non-repository app?Anaconda Nav wont launch 18.04
Avoiding cliches when writing gods
Shape-shifting using particle-sized 'building blocks'
How to make thick Asian sauces?
What's the correct term for a waitress in the Middle Ages?
Secure offsite backup, even in the case of hacker root access
How to pass a regex when finding a directory path in bash?
Managing libraries hosted on EmacsWiki
Why is the application of an oracle function not a measurement?
Should I "tell" my exposition or give it through dialogue?
About the expansion of seq_set_split
When conversion from Integer to Single may lose precision
Does the "6 seconds per round" rule apply to speaking/roleplaying during combat situations?
Does an ice chest packed full of frozen food need ice?
You've spoiled/damaged the card
Will TSA allow me to carry a Continuous Positive Airway Pressure (CPAP)/sleep apnea device?
Making an Action<T> event also usable as Action<object> and Action in C#
Are there any existing monsters I can use as a basis for a baby skeleton statblock?
Is it possible to (7 day) schedule sleep time of a hard drive?
How to make a setting relevant?
PL/SQL function to receive a number and return its binary format
How were concentration and extermination camp guards recruited?
What LISP compilers and interpreters were available for 8-bit machines?
Strat tremolo bar has tightening issues
How hard would it be to convert a glider into an powered electric aircraft?
Can't create anaconda shortcut to launch from desktop on ubuntu 17.10?
How to create a launch icon for anaconda-navigator in Ubuntu 18.04Creating Launcher for AnacondaHow can I create launchers on my desktop?Processes and .desktop launchers (Identification)Why does custom launcher behavior differ in the Dash and other means of launching?How to install Aptana Studio 3 in Ubuntu 14.04? with Launcher shortcuts and Dash search?Stencyl.Desktop not working.desktop shortcut fails to launch programUbuntu 17.10 .desktop wont launch electron appI cannot launch Anaconda after I had to hard shut-down my PC. I use anaconda-navigator in terminal to launchHow to create a launch icon for anaconda-navigator in Ubuntu 18.04How do you get a *.desktop file to work for a non-repository app?Anaconda Nav wont launch 18.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
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?
launcher .desktop anaconda
add a comment |
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?
launcher .desktop anaconda
1
"can't actually launch it" is not very helpful. What goes wrong if you try to launch the application by double-clicking the.desktop
launcher?
– pomsky
Mar 19 '18 at 13:45
1
Also can you launch it by runningbash -c anaconda-navigator
in Terminal?
– pomsky
Mar 25 '18 at 18:31
@pomsky I tried it (my first time) and it works. However it needs the full path for the desktop launcher. See my answer below.
– user10853
Mar 26 '18 at 21:23
It's unfortunate that this used to be as easy as a right-click and no longer is. Even the explanation below of needing to write a .desktop file is not tops as it leaves plenty of room to mess things up, like the path to the icon being not visually verifiable, or wrong quotes in the bash call, etc.
– Mittenchops
May 15 '18 at 19:42
add a comment |
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?
launcher .desktop anaconda
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?
launcher .desktop anaconda
launcher .desktop anaconda
edited Mar 19 '18 at 12:14
steves
asked Mar 19 '18 at 11:51
stevessteves
76114
76114
1
"can't actually launch it" is not very helpful. What goes wrong if you try to launch the application by double-clicking the.desktop
launcher?
– pomsky
Mar 19 '18 at 13:45
1
Also can you launch it by runningbash -c anaconda-navigator
in Terminal?
– pomsky
Mar 25 '18 at 18:31
@pomsky I tried it (my first time) and it works. However it needs the full path for the desktop launcher. See my answer below.
– user10853
Mar 26 '18 at 21:23
It's unfortunate that this used to be as easy as a right-click and no longer is. Even the explanation below of needing to write a .desktop file is not tops as it leaves plenty of room to mess things up, like the path to the icon being not visually verifiable, or wrong quotes in the bash call, etc.
– Mittenchops
May 15 '18 at 19:42
add a comment |
1
"can't actually launch it" is not very helpful. What goes wrong if you try to launch the application by double-clicking the.desktop
launcher?
– pomsky
Mar 19 '18 at 13:45
1
Also can you launch it by runningbash -c anaconda-navigator
in Terminal?
– pomsky
Mar 25 '18 at 18:31
@pomsky I tried it (my first time) and it works. However it needs the full path for the desktop launcher. See my answer below.
– user10853
Mar 26 '18 at 21:23
It's unfortunate that this used to be as easy as a right-click and no longer is. Even the explanation below of needing to write a .desktop file is not tops as it leaves plenty of room to mess things up, like the path to the icon being not visually verifiable, or wrong quotes in the bash call, etc.
– Mittenchops
May 15 '18 at 19:42
1
1
"can't actually launch it" is not very helpful. What goes wrong if you try to launch the application by double-clicking the
.desktop
launcher?– pomsky
Mar 19 '18 at 13:45
"can't actually launch it" is not very helpful. What goes wrong if you try to launch the application by double-clicking the
.desktop
launcher?– pomsky
Mar 19 '18 at 13:45
1
1
Also can you launch it by running
bash -c anaconda-navigator
in Terminal?– pomsky
Mar 25 '18 at 18:31
Also can you launch it by running
bash -c anaconda-navigator
in Terminal?– pomsky
Mar 25 '18 at 18:31
@pomsky I tried it (my first time) and it works. However it needs the full path for the desktop launcher. See my answer below.
– user10853
Mar 26 '18 at 21:23
@pomsky I tried it (my first time) and it works. However it needs the full path for the desktop launcher. See my answer below.
– user10853
Mar 26 '18 at 21:23
It's unfortunate that this used to be as easy as a right-click and no longer is. Even the explanation below of needing to write a .desktop file is not tops as it leaves plenty of room to mess things up, like the path to the icon being not visually verifiable, or wrong quotes in the bash call, etc.
– Mittenchops
May 15 '18 at 19:42
It's unfortunate that this used to be as easy as a right-click and no longer is. Even the explanation below of needing to write a .desktop file is not tops as it leaves plenty of room to mess things up, like the path to the icon being not visually verifiable, or wrong quotes in the bash call, etc.
– Mittenchops
May 15 '18 at 19:42
add a comment |
6 Answers
6
active
oldest
votes
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
export CONDA_PYTHON_EXE=/home/paygilant/anaconda3/bin/python
export PATH=/home/paygilant/anaconda3/bin:$PATH
python /home/paygilant/anaconda3/bin/anaconda-navigatorCreate a desktop file
/home/paygilant/anaconda.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Exec=/bin/bash "/home/paygilant/bin/anaconda.sh"
Icon=/home/paygilant/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=trueRun
sudo desktop-file-install anaconda.desktop
.
After 10~20 seconds, you can see Anaconda shortcut in dash.
When I typeanaconda-navigator --version
in the terminal i get1.9.6
, yet when adding this entry to the desktop entry and installing I getanaconda-navigator.desktop: error: value "1.9.6" for key "Version" in group "Desktop Entry" is not a known version
– alonso s
Feb 17 at 23:10
1
As the document help.ubuntu.com/community/UnityLaunchersAndDesktopFiles said,Version
is the version of this .desktop file. It should bex.y
format and is irrelevant to Anaconda version.
– Ping Chu Hung
Feb 18 at 5:04
add a comment |
Tried and tested. You need to give it the full path for some reason:
[Desktop Entry]
Name=Anaconda
Exec=bash -c 'export PATH="/home/paygilant/anaconda3/bin:$PATH" && /home/paygilant/anaconda3/bin/anaconda-navigator'
Terminal=false
Type=Application
StartupNotify=true
Then to add it to the Unity/Gnome dash:
cp -t ~/.local/share/applications ~/Desktop/anaconda_launcher.desktop
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).
add a comment |
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:[Desktop Entry]
Type=Application
Name=Anaconda
Exec=anaconda-navigator
Terminal=false
Icon=/home/ganeshan/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.pngUse 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)
add a comment |
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.
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Comment=Scientific Python Development Environment - Python3
Exec=bash -c 'export PATH="/home/jishan/anaconda3/bin:$PATH" && /home/jishan/anaconda3/bin/anaconda-navigator'
Categories=Development;Science;IDE;Qt;Education;
Icon=/home/jishan/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
MimeType=text/x-python;
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. replace jishan
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/)
sudo cp Anaconda.desktop /usr/share/applications
This will create a desktop entry named
Anaconda
in/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.
Source ~/anaconda3/bin/activate root
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
anaconda-navigator
This will result in opening anaconda-navigator. (For each time you've to activate root as soon as your session is destroyed).
Thanks. And anyone reading this, make sure your python version is correct in the path. As it might bepython3.7
– Gabriel Fair
Jan 23 at 17:10
add a comment |
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?
ls -l /path/to/file
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?
add a comment |
To run anaconda with launcher icon you need first to add the path to the root environment PATH
sudo echo "PATH=$PATH:/home/user/anaconda3/bin" >> /etc/environment
restart your PC,
then surprise surprise the icon you created would work
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017284%2fcant-create-anaconda-shortcut-to-launch-from-desktop-on-ubuntu-17-10%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
export CONDA_PYTHON_EXE=/home/paygilant/anaconda3/bin/python
export PATH=/home/paygilant/anaconda3/bin:$PATH
python /home/paygilant/anaconda3/bin/anaconda-navigatorCreate a desktop file
/home/paygilant/anaconda.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Exec=/bin/bash "/home/paygilant/bin/anaconda.sh"
Icon=/home/paygilant/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=trueRun
sudo desktop-file-install anaconda.desktop
.
After 10~20 seconds, you can see Anaconda shortcut in dash.
When I typeanaconda-navigator --version
in the terminal i get1.9.6
, yet when adding this entry to the desktop entry and installing I getanaconda-navigator.desktop: error: value "1.9.6" for key "Version" in group "Desktop Entry" is not a known version
– alonso s
Feb 17 at 23:10
1
As the document help.ubuntu.com/community/UnityLaunchersAndDesktopFiles said,Version
is the version of this .desktop file. It should bex.y
format and is irrelevant to Anaconda version.
– Ping Chu Hung
Feb 18 at 5:04
add a comment |
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
export CONDA_PYTHON_EXE=/home/paygilant/anaconda3/bin/python
export PATH=/home/paygilant/anaconda3/bin:$PATH
python /home/paygilant/anaconda3/bin/anaconda-navigatorCreate a desktop file
/home/paygilant/anaconda.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Exec=/bin/bash "/home/paygilant/bin/anaconda.sh"
Icon=/home/paygilant/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=trueRun
sudo desktop-file-install anaconda.desktop
.
After 10~20 seconds, you can see Anaconda shortcut in dash.
When I typeanaconda-navigator --version
in the terminal i get1.9.6
, yet when adding this entry to the desktop entry and installing I getanaconda-navigator.desktop: error: value "1.9.6" for key "Version" in group "Desktop Entry" is not a known version
– alonso s
Feb 17 at 23:10
1
As the document help.ubuntu.com/community/UnityLaunchersAndDesktopFiles said,Version
is the version of this .desktop file. It should bex.y
format and is irrelevant to Anaconda version.
– Ping Chu Hung
Feb 18 at 5:04
add a comment |
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
export CONDA_PYTHON_EXE=/home/paygilant/anaconda3/bin/python
export PATH=/home/paygilant/anaconda3/bin:$PATH
python /home/paygilant/anaconda3/bin/anaconda-navigatorCreate a desktop file
/home/paygilant/anaconda.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Exec=/bin/bash "/home/paygilant/bin/anaconda.sh"
Icon=/home/paygilant/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=trueRun
sudo desktop-file-install anaconda.desktop
.
After 10~20 seconds, you can see Anaconda shortcut in dash.
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
export CONDA_PYTHON_EXE=/home/paygilant/anaconda3/bin/python
export PATH=/home/paygilant/anaconda3/bin:$PATH
python /home/paygilant/anaconda3/bin/anaconda-navigatorCreate a desktop file
/home/paygilant/anaconda.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Exec=/bin/bash "/home/paygilant/bin/anaconda.sh"
Icon=/home/paygilant/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=trueRun
sudo desktop-file-install anaconda.desktop
.
After 10~20 seconds, you can see Anaconda shortcut in dash.
answered Mar 26 '18 at 8:39
Ping Chu HungPing Chu Hung
69719
69719
When I typeanaconda-navigator --version
in the terminal i get1.9.6
, yet when adding this entry to the desktop entry and installing I getanaconda-navigator.desktop: error: value "1.9.6" for key "Version" in group "Desktop Entry" is not a known version
– alonso s
Feb 17 at 23:10
1
As the document help.ubuntu.com/community/UnityLaunchersAndDesktopFiles said,Version
is the version of this .desktop file. It should bex.y
format and is irrelevant to Anaconda version.
– Ping Chu Hung
Feb 18 at 5:04
add a comment |
When I typeanaconda-navigator --version
in the terminal i get1.9.6
, yet when adding this entry to the desktop entry and installing I getanaconda-navigator.desktop: error: value "1.9.6" for key "Version" in group "Desktop Entry" is not a known version
– alonso s
Feb 17 at 23:10
1
As the document help.ubuntu.com/community/UnityLaunchersAndDesktopFiles said,Version
is the version of this .desktop file. It should bex.y
format and is irrelevant to Anaconda version.
– Ping Chu Hung
Feb 18 at 5:04
When I type
anaconda-navigator --version
in the terminal i get 1.9.6
, yet when adding this entry to the desktop entry and installing I get anaconda-navigator.desktop: error: value "1.9.6" for key "Version" in group "Desktop Entry" is not a known version
– alonso s
Feb 17 at 23:10
When I type
anaconda-navigator --version
in the terminal i get 1.9.6
, yet when adding this entry to the desktop entry and installing I get anaconda-navigator.desktop: error: value "1.9.6" for key "Version" in group "Desktop Entry" is not a known version
– alonso s
Feb 17 at 23:10
1
1
As the document help.ubuntu.com/community/UnityLaunchersAndDesktopFiles said,
Version
is the version of this .desktop file. It should be x.y
format and is irrelevant to Anaconda version.– Ping Chu Hung
Feb 18 at 5:04
As the document help.ubuntu.com/community/UnityLaunchersAndDesktopFiles said,
Version
is the version of this .desktop file. It should be x.y
format and is irrelevant to Anaconda version.– Ping Chu Hung
Feb 18 at 5:04
add a comment |
Tried and tested. You need to give it the full path for some reason:
[Desktop Entry]
Name=Anaconda
Exec=bash -c 'export PATH="/home/paygilant/anaconda3/bin:$PATH" && /home/paygilant/anaconda3/bin/anaconda-navigator'
Terminal=false
Type=Application
StartupNotify=true
Then to add it to the Unity/Gnome dash:
cp -t ~/.local/share/applications ~/Desktop/anaconda_launcher.desktop
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).
add a comment |
Tried and tested. You need to give it the full path for some reason:
[Desktop Entry]
Name=Anaconda
Exec=bash -c 'export PATH="/home/paygilant/anaconda3/bin:$PATH" && /home/paygilant/anaconda3/bin/anaconda-navigator'
Terminal=false
Type=Application
StartupNotify=true
Then to add it to the Unity/Gnome dash:
cp -t ~/.local/share/applications ~/Desktop/anaconda_launcher.desktop
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).
add a comment |
Tried and tested. You need to give it the full path for some reason:
[Desktop Entry]
Name=Anaconda
Exec=bash -c 'export PATH="/home/paygilant/anaconda3/bin:$PATH" && /home/paygilant/anaconda3/bin/anaconda-navigator'
Terminal=false
Type=Application
StartupNotify=true
Then to add it to the Unity/Gnome dash:
cp -t ~/.local/share/applications ~/Desktop/anaconda_launcher.desktop
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).
Tried and tested. You need to give it the full path for some reason:
[Desktop Entry]
Name=Anaconda
Exec=bash -c 'export PATH="/home/paygilant/anaconda3/bin:$PATH" && /home/paygilant/anaconda3/bin/anaconda-navigator'
Terminal=false
Type=Application
StartupNotify=true
Then to add it to the Unity/Gnome dash:
cp -t ~/.local/share/applications ~/Desktop/anaconda_launcher.desktop
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).
edited Jun 24 '18 at 9:07
David Foerster
28.6k1367114
28.6k1367114
answered Mar 26 '18 at 21:21
user10853user10853
5211628
5211628
add a comment |
add a comment |
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:[Desktop Entry]
Type=Application
Name=Anaconda
Exec=anaconda-navigator
Terminal=false
Icon=/home/ganeshan/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.pngUse 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)
add a comment |
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:[Desktop Entry]
Type=Application
Name=Anaconda
Exec=anaconda-navigator
Terminal=false
Icon=/home/ganeshan/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.pngUse 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)
add a comment |
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:[Desktop Entry]
Type=Application
Name=Anaconda
Exec=anaconda-navigator
Terminal=false
Icon=/home/ganeshan/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.pngUse 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)
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:[Desktop Entry]
Type=Application
Name=Anaconda
Exec=anaconda-navigator
Terminal=false
Icon=/home/ganeshan/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.pngUse 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)
edited Feb 13 at 8:51
Olorin
1
1
answered Feb 13 at 5:29
Ganeshan ntGaneshan nt
112
112
add a comment |
add a comment |
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.
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Comment=Scientific Python Development Environment - Python3
Exec=bash -c 'export PATH="/home/jishan/anaconda3/bin:$PATH" && /home/jishan/anaconda3/bin/anaconda-navigator'
Categories=Development;Science;IDE;Qt;Education;
Icon=/home/jishan/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
MimeType=text/x-python;
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. replace jishan
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/)
sudo cp Anaconda.desktop /usr/share/applications
This will create a desktop entry named
Anaconda
in/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.
Source ~/anaconda3/bin/activate root
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
anaconda-navigator
This will result in opening anaconda-navigator. (For each time you've to activate root as soon as your session is destroyed).
Thanks. And anyone reading this, make sure your python version is correct in the path. As it might bepython3.7
– Gabriel Fair
Jan 23 at 17:10
add a comment |
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.
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Comment=Scientific Python Development Environment - Python3
Exec=bash -c 'export PATH="/home/jishan/anaconda3/bin:$PATH" && /home/jishan/anaconda3/bin/anaconda-navigator'
Categories=Development;Science;IDE;Qt;Education;
Icon=/home/jishan/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
MimeType=text/x-python;
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. replace jishan
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/)
sudo cp Anaconda.desktop /usr/share/applications
This will create a desktop entry named
Anaconda
in/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.
Source ~/anaconda3/bin/activate root
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
anaconda-navigator
This will result in opening anaconda-navigator. (For each time you've to activate root as soon as your session is destroyed).
Thanks. And anyone reading this, make sure your python version is correct in the path. As it might bepython3.7
– Gabriel Fair
Jan 23 at 17:10
add a comment |
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.
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Comment=Scientific Python Development Environment - Python3
Exec=bash -c 'export PATH="/home/jishan/anaconda3/bin:$PATH" && /home/jishan/anaconda3/bin/anaconda-navigator'
Categories=Development;Science;IDE;Qt;Education;
Icon=/home/jishan/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
MimeType=text/x-python;
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. replace jishan
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/)
sudo cp Anaconda.desktop /usr/share/applications
This will create a desktop entry named
Anaconda
in/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.
Source ~/anaconda3/bin/activate root
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
anaconda-navigator
This will result in opening anaconda-navigator. (For each time you've to activate root as soon as your session is destroyed).
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.
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Comment=Scientific Python Development Environment - Python3
Exec=bash -c 'export PATH="/home/jishan/anaconda3/bin:$PATH" && /home/jishan/anaconda3/bin/anaconda-navigator'
Categories=Development;Science;IDE;Qt;Education;
Icon=/home/jishan/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
MimeType=text/x-python;
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. replace jishan
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/)
sudo cp Anaconda.desktop /usr/share/applications
This will create a desktop entry named
Anaconda
in/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.
Source ~/anaconda3/bin/activate root
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
anaconda-navigator
This will result in opening anaconda-navigator. (For each time you've to activate root as soon as your session is destroyed).
edited Apr 14 at 20:15
Kevin Bowen
15.2k156072
15.2k156072
answered Aug 5 '18 at 6:10
Jishan ShaikhJishan Shaikh
2114
2114
Thanks. And anyone reading this, make sure your python version is correct in the path. As it might bepython3.7
– Gabriel Fair
Jan 23 at 17:10
add a comment |
Thanks. And anyone reading this, make sure your python version is correct in the path. As it might bepython3.7
– Gabriel Fair
Jan 23 at 17:10
Thanks. And anyone reading this, make sure your python version is correct in the path. As it might be
python3.7
– Gabriel Fair
Jan 23 at 17:10
Thanks. And anyone reading this, make sure your python version is correct in the path. As it might be
python3.7
– Gabriel Fair
Jan 23 at 17:10
add a comment |
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?
ls -l /path/to/file
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?
add a comment |
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?
ls -l /path/to/file
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?
add a comment |
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?
ls -l /path/to/file
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?
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?
ls -l /path/to/file
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?
edited Mar 25 '18 at 16:48
pa4080
15k63077
15k63077
answered Mar 19 '18 at 12:51
Joeri_DamianJoeri_Damian
113
113
add a comment |
add a comment |
To run anaconda with launcher icon you need first to add the path to the root environment PATH
sudo echo "PATH=$PATH:/home/user/anaconda3/bin" >> /etc/environment
restart your PC,
then surprise surprise the icon you created would work
add a comment |
To run anaconda with launcher icon you need first to add the path to the root environment PATH
sudo echo "PATH=$PATH:/home/user/anaconda3/bin" >> /etc/environment
restart your PC,
then surprise surprise the icon you created would work
add a comment |
To run anaconda with launcher icon you need first to add the path to the root environment PATH
sudo echo "PATH=$PATH:/home/user/anaconda3/bin" >> /etc/environment
restart your PC,
then surprise surprise the icon you created would work
To run anaconda with launcher icon you need first to add the path to the root environment PATH
sudo echo "PATH=$PATH:/home/user/anaconda3/bin" >> /etc/environment
restart your PC,
then surprise surprise the icon you created would work
edited Jul 19 '18 at 18:03
answered Jun 23 '18 at 13:53
user706142
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017284%2fcant-create-anaconda-shortcut-to-launch-from-desktop-on-ubuntu-17-10%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
"can't actually launch it" is not very helpful. What goes wrong if you try to launch the application by double-clicking the
.desktop
launcher?– pomsky
Mar 19 '18 at 13:45
1
Also can you launch it by running
bash -c anaconda-navigator
in Terminal?– pomsky
Mar 25 '18 at 18:31
@pomsky I tried it (my first time) and it works. However it needs the full path for the desktop launcher. See my answer below.
– user10853
Mar 26 '18 at 21:23
It's unfortunate that this used to be as easy as a right-click and no longer is. Even the explanation below of needing to write a .desktop file is not tops as it leaves plenty of room to mess things up, like the path to the icon being not visually verifiable, or wrong quotes in the bash call, etc.
– Mittenchops
May 15 '18 at 19:42