Message Boards Message Boards

0
|
30432 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

"Invalid desktop entry file" error when I launch from Pi desktop icon

Posted 8 years ago

I believe that this error occurred upon upgrade to 10.3.1 on Jessie, but I am not sure about that. It appears that the desktop file in raspi-ui-overrides was not updated and still referrs to 10.0. My fix is to run in Terminal:

sudo cp /usr/share/applications/wolfram-mathematica.desktop /usr/share/raspi-ui-overrides/applications/wolfram-mathematica.desktop

As always before executing a sudo command, make a backup of the file to be overwritten before executing.

Posted here because no solution came up in a web search, so I though this should be documented somewhere.

POSTED BY: Daniel Warren
3 Replies
Posted 8 years ago

Hi Daniel,

I experienced a similar problem bringing up a RPI2 for a friend; the toolbar 'Mathematica' button stopped working after updating and upgrading an Element 14 Noobs + Recovery micro SD card (SK 40522 71053). Curiously, my own RPI2 SD card, derived from a 'raspian-jesse' image download dated 2015-11-21, worked fine after the update/upgrade.

Inspecting the file "/usr/share/raspi-ui-overrides/applications/wolfram-mathematica.desktop" from both RPI2's suggested the following fix, which solved the my problem:

Contents NOOBS/RECOVERY "/usr/share/raspi-ui-overrides/applications/wolfram-mathematica.desktop"

[Desktop Entry]
Encoding=UTF-8
Type=Application
Version=1.0
Name=Mathematica
Comment=Technical Computing System
Icon=wolfram-mathematica
TryExec=/opt/Wolfram/WolframEngine/10.0/Executables/Mathematica
Exec=/opt/Wolfram/WolframEngine/10.0/Executables/Mathematica %F
Terminal=False
MimeType=application/mathematica;application/vnd.wolfram.cdf;application/mathem$
Categories=Application;Development;
StartupNotify=true

Change following lines to match the file contents seen after the "raspian-jesse" SD card update/upgrade:

TryExec=Mathematica
Exec=Mathematica %F

The changes were made from a command line terminal using the 'nano' editor:

cd /usr/share/raspi-ui-overrides/applications
sudo nano wolfram-mathematica.desktop

One could also use "sudo startx" at the command line interface prompt to run the GUI with root privileges, then navigate to "wolfram-mathematica.desktop" using the file manager, then make the required changes using the text editor. To revoke root privileges, exit to the CLI and restart the GUI using the regular 'startx' command.

Best Regards,

Layne Wright

POSTED BY: Layne Wright

My 2016-03-08

 `sudo apt-get install wolfram-engine

`got me an installation in which trying to launch Mathematica from the RPi GUI got me an error box with a message, complaining about an invalid file

/usr/share/raspi-ui-overrides/applications/wolfram-mathematica.desktop

As described in this thread, the offending file has pointers to "10.0" nonexistent directories in the lines headed "Exec" and TryExec"

nanoing these lines to "10.3" and a reboot fixed the failure to launch.

Is this the preferred fix, and are there other, maybe worse things lurking?

Is

TryExec=Mathematica
Exec=Mathematica %F

sufficient?

Preferred?

Fred Klingener

POSTED BY: Fred Klingener

Hello,

The suggestion above, "nanoing these lines to "10.3" and a reboot fixed the failure to launch", didn't work for me.

I tried:

"sudo apt-get update" "sudo apt-get dist-upgrade"

and it worked.

Then, I fixed the https://www.raspberrypi.org/forums/viewtopic.php?f=94&t=131051&p=920296&hilit=mathematica+desktop#p920296 issue using "sudo apt-get install libgl1-mesa-swx11" as suggested there.

POSTED BY: Armand Liberi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract