I got some help from the folks at AskUbuntu <https://askubuntu.com/questions/1102899/adding-an-icon-for-spyder-in-favourites-bar-in-ubuntu-18-04> and managed to sort it out by doing the following:
- The "spyder.desktop" file (downloaded from the Spyder GitHub) must be placed in "/usr/share/applications" and have executable permission; - The .desktop files require an absolute path in the "Exec" and "TryExec" fields to the application (mine was "/home/myusername/anaconda3/bin/spyder"); - Finally, the "Icon" field must also receive an absolute path (I used "/home/myusername/anaconda3/share/icons/spyder3.png"). Now I have a nice icon for launching Spyder straight from my Favourites bar :) On Tuesday, November 6, 2018 at 5:40:23 PM UTC+1, [email protected] wrote: > > Hi, not sure if this is a Spyder issue or a Ubuntu issue, but let's give > it a try here first. > > I have freshly installed Ubuntu 18.04 and Anaconda (with Python 3.7) in my > laptop, and I'm now trying to set up a launch icon for Spyder - something > I've done many times in the past couple of years when running Ubuntu 16. > > I can successfully run Spyder from the Terminal and it seems to be working > fine, but when I run it from the terminal and right-click the icon, it does > not give me an option for adding it to Favorites. > > It seems I can manually add an icon for it by creating a .desktop file for > it, as described here > <https://askubuntu.com/questions/967409/cant-add-custom-desktop-files-to-ubuntu-dock> > > and here > <https://askubuntu.com/questions/990833/cannot-add-custom-launcher-to-dock-add-to-favorites>; > > I tired that, but Spyder does NOT show up in Applications after creating > the .desktop files. In fact, I get a generic "There was an error launching > the application" message when double-clicking the .desktop file. I even > tried using the "spyder.desktop" file in the Spyder Github, but to no avail. > > Is this a known issue with Spyder and Ubuntu 18? Does anyone knows how to > sort this out? > > > As usual, many thanks for the great job and the wonderful support! :) > Kind Regards - Fabio > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/d/optout.
