simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

No menu/desktop shortcuts

Fri Nov 22, 2013 7:23 am

Hi downloaded and installed Mathematica but I can't see any desktop icon or menu item to Mathematica

There is a menu item called Wolfram but that doesn't do a lot :) (Just terminal with In[]= showing)

Running mathematica from LXTerminal works though

regards

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

dennisw
Posts: 18
Joined: Fri Nov 22, 2013 7:06 am

Re: No menu/desktop shortcuts

Fri Nov 22, 2013 7:56 am

These instructions for creating desktop shortcuts and menu entries in LXDE should help:

http://lkubaski.wordpress.com/2012/06/2 ... shortcuts/
raspberrypi.stackexchange.com --- mathematica.stackexchange.com

shijor
Posts: 2
Joined: Sat Nov 23, 2013 4:40 am
Location: India
Contact: Yahoo Messenger

Re: No menu/desktop shortcuts

Sat Nov 23, 2013 4:49 am

I had the same issue. You can launch Mathematica as below
-> Open a terminal window
-> Run "/user/bin/Mathematica"

Now Mathematica will be opened!

User avatar
bleep42
Posts: 148
Joined: Wed Mar 07, 2012 12:43 pm
Location: Sussex

Re: No menu/desktop shortcuts

Sat Nov 23, 2013 9:14 am

Hi,
It appears that once you have run Mathmatica from the command line as above, a short cut will appear in the app launcher under the 'Education' menu item. I now have one and I didn't put it there. ;-)

sharix
Posts: 200
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia

Re: No menu/desktop shortcuts

Sat Nov 23, 2013 12:01 pm

shijor wrote:I had the same issue. You can launch Mathematica as below
-> Open a terminal window
-> Run "/user/bin/Mathematica"

Now Mathematica will be opened!
the correct path is "/usr/bin/mathematica".

shijor
Posts: 2
Joined: Sat Nov 23, 2013 4:40 am
Location: India
Contact: Yahoo Messenger

Re: No menu/desktop shortcuts

Sun Nov 24, 2013 12:53 pm

sharix wrote:
shijor wrote:I had the same issue. You can launch Mathematica as below
-> Open a terminal window
-> Run "/user/bin/Mathematica"

Now Mathematica will be opened!
the correct path is "/usr/bin/mathematica".

Thanks for the correction.

8bitmicro
Posts: 6
Joined: Thu Nov 28, 2013 12:15 am

Re: No menu/desktop shortcuts

Thu Nov 28, 2013 12:31 am

I struggled with this for a while. It looks like I needn't have.

I rarely login with the default "pi" user. The first thing I do on booting a new image is to create a new user and add it to the sudoers list. Then I change the user pi's password.

Having tried to make sense of the pages I found on creating lxde menu entries, I logged in as the user pi to see if the menu items had been created under the default user account during installation.

Sure enough, they had; icons for both Wolfram and Mathematica. Curious to work out where the differences lay, I logged-out and back in again using my normal user account.

On checking the menus on my non-pi account, I found both icons were now present.

I've installed few optional applications. "Midnight Commander" being one of a few file-management utilities I find indispensable. MC created its own menu-item on installation but I only noticed this recently.

I'm hoping all it takes is a login as pi to update the menu structures.

Perhaps those who aren't seeing the icons are running with the default pi account?

This worked for me but your mileage may vary. I certainly didn't add or change anything else to make them suddenly appear.
Attachments
mathematica.jpg
mathematica.jpg (30.51 KiB) Viewed 20151 times

User avatar
madler
Posts: 7
Joined: Thu Nov 28, 2013 3:58 am

Re: No menu/desktop shortcuts

Thu Nov 28, 2013 4:05 am

I have the same question. I would like a nice little Mathematica icon on the desktop with which to launch the application. The icon should be their little spikey guy:

Image

All I can find is a Wolfram icon (which is just the Mathematica kernel, not the notebook interface) duplicated in Education and in Programming. I can find no clickable Mathematica.

I temporarily solved the problem by launching "mathematica &" from a terminal window (you don't need the "/usr/bin" since that's already in your path), and then saved a Mathematica notebook on the desktop. So I can launch Mathematica by double-clicking the notebook. Of course, then I get that notebook.

User avatar
madler
Posts: 7
Joined: Thu Nov 28, 2013 3:58 am

Re: No menu/desktop shortcuts

Thu Nov 28, 2013 4:47 am

Ok, got it. Thanks to a comment on the download page.

Edit this text file (with sudo so you can save it): /usr/share/applications/wolfram-mathematica.desktop

Add a line at the end:

StartupNotify=true

The Mathematica icon to open the notebook interface will then appear in the Education menu (along with Wolfram, which is the command line kernel interface).

Then you can right-click the Mathematica in Education and then click on Add to Desktop.

I also added Wolfram to my desktop.

alexatwri
Posts: 12
Joined: Fri Nov 29, 2013 1:59 am

Re: No menu/desktop shortcuts

Mon Dec 02, 2013 4:44 pm

It's not clear to me why the lack of StartupNotify would lead to a menu icon not being populated. There are no hacks in the package installation that specify pi's home directory, either, so behavior should be the same for all users. I can check whether or not we're adhering the Startup Notification XDG spec. If LXDE expects that value to be there, that is reason enough to add something.

User avatar
algorithm
Posts: 181
Joined: Mon Nov 25, 2013 9:09 pm
Location: Flatland

Re: No menu/desktop shortcuts

Mon Dec 02, 2013 6:51 pm

alexatwri wrote:menu icon not being populated.
I had the same problem. Completely fresh & latest Raspbian on a 512 MB model B with 8 GB card, system apt-get updated and rpi-updated before installing Mathematica. Possible non-standard settings: auto-login user pi to desktop, CET timezone, en-gb wireless keyboard+mouse, nl-nl locale, custom hostname, custom password.

alexatwri
Posts: 12
Joined: Fri Nov 29, 2013 1:59 am

Re: No menu/desktop shortcuts

Mon Dec 02, 2013 9:05 pm

I'll add that line to the official debian package. So, this should be changed in the next update. Thanks for the feedback!

edy
Posts: 1
Joined: Tue Sep 02, 2014 3:02 pm

Re: No menu/desktop shortcuts

Tue Sep 02, 2014 3:27 pm

I worked with trying to place an icon for weeks. Then I read an article about the "/usr/share/application" directory. There is a list of desktop files. The article I read suggested making a soft link to these entries. I did that and had good results but also COPYing one of the files in the /usr/share/applications directory to the /home/pi/Directory did just as good. If you want to make a new desktop entry, place a copy of the file for desktop shortcuts in both directories.
If you prefer to use a soft link try this

cd /home/pi/Desktop
ln -s program name

program name is the desktop entry in the /usr/share/applications directory (as /usr/share/applications/idle.desktop)

I am not the best a writing but I hope this has been some help.
Ed

Return to “Mathematica”