4
$\begingroup$

The user in which I installed the Mathematica is removed. There I could launch Mathematica by double-clicking its icon as well as any .nb file.

Now that I'm in a new user, for some reason the Mathematica icon is not even in the Application menu and double-clicking .nb file returns "Could not display 'xxx.nb'." and asks me to search online the software to link .nb file, which brings me nowhere.

I can still launch Mathematica via terminal command "math" or "mathematica" etc., but I wish I could just double-click launch from the desktop environment.

Debian 11 + gnome 3.38.6

$\endgroup$
3
  • 1
    $\begingroup$ Not sure this is related to Mathematica though. I suspect you'll have to somehow associate the nb extension to the appropriate program using your OS features. $\endgroup$
    – MarcoB
    Dec 23, 2021 at 2:24
  • 5
    $\begingroup$ Gnome wants you to install the *.desktop file for the application icon to appear. An example .desktop file can be found in MMA 12 with FileNames["wolfram-mathematic12.desktop", $InstallationDirectory, Infinity]. A copy of this file may be located elsewhere on your system. The man pages for the desktop-file-install and the update-desktop-database programs may be helpful. $\endgroup$
    – LouisB
    Dec 23, 2021 at 3:35
  • $\begingroup$ @LouisB Thanks, that worked easy! $\endgroup$
    – user28936
    Dec 23, 2021 at 3:55

1 Answer 1

5
$\begingroup$

I found and copied the file wolfram-mathematica12.desktop in the Mathematica installation directory /usr/local/Wolfram/Mathematica/12.3/SystemFiles/Installation/ and simply pasted to /usr/share/applications. Problem solved!

Credit goes to this comment.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.