Cannot run in Ubuntu 22.04

Cannot run in Ubuntu 22.04 - Messages

#1 Posted: 9/28/2023 3:57:49 PM
vroberts

vroberts

0 likes in 7 posts.

Group: User

I cannot run the SmathStudio appimage in Ubuntu 22.04. Other appimage programs do run on the system, so I seem to have the proper resources. There is no error message. Just nothing.
#2 Posted: 9/28/2023 6:51:04 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

This is mono bug of debian based distros. You can find detailed explanation about it at link below.

Regards

https://en.smath.com/forum/yaf_postsm75553_SMath-in-Linux.aspx#post75553
#3 Posted: 9/29/2023 12:57:15 PM
vroberts

vroberts

0 likes in 7 posts.

Group: User

Wrote

This is mono bug of debian based distros. You can find detailed explanation about it at link below.

Regards

https://en.smath.com/forum/yaf_postsm75553_SMath-in-Linux.aspx#post75553



If SM does not run on Debian based distros, I wonder why Ubuntu is listed on the Download page as the example of a Linux distro.

#4 Posted: 7/20/2024 5:05:00 AM
David Cigna

David Cigna

0 likes in 2 posts.

Group: User

Wrote

Wrote

This is mono bug of debian based distros. You can find detailed explanation about it at link below.

Regards

https://en.smath.com/forum/yaf_postsm75553_SMath-in-Linux.aspx#post75553



If SM does not run on Debian based distros, I wonder why Ubuntu is listed on the Download page as the example of a Linux distro.



I know this is a 10 month old thread, but this is such a common problem that I think it's worth responding.

overlord did not say that smath does not run on Debian based distros. I think that what he implied is that if it won't run, then you need to fix your mono installation.

One thing that finally worked for me was to install not just the mono runtime, but also the developer package:


sudo apt update
sudo apt upgrade
sudo apt install mono-runtime mono-devel

You can refer to this thread for more ideas:
Ask Ubuntu
#5 Posted: 7/20/2024 5:23:41 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

In fact, you even don't need to fix or install anything. This is a common mono bug and it can be fixed with editing your smathstudio mono execution file.

With respect to pdalet, here is his post.

Wrote

Good New for ubuntu users

SMath Studio runs on ubuntu 22.04 without sudo.

Modify smathstudio_desktop_mono

#!/bin/sh
export MONO_WINFORMS_XIM_STYLE=disabled
exec mono "./SMathStudio_Desktop.exe" "$@"

Ph.DALET
Lyp Champollion
Figeac-FRANCE

#6 Posted: 8/3/2024 12:25:22 AM
giddyApples8

giddyApples8

0 likes in 15 posts.

Group: User

Wrote

In fact, you even don't need to fix or install anything. This is a common mono bug and it can be fixed with editing your smathstudio mono execution file.

With respect to pdalet, here is his post.

Wrote

Good New for ubuntu users

SMath Studio runs on ubuntu 22.04 without sudo.

Modify smathstudio_desktop_mono

#!/bin/sh
export MONO_WINFORMS_XIM_STYLE=disabled
exec mono "./SMathStudio_Desktop.exe" "$@"

Ph.DALET
Lyp Champollion
Figeac-FRANCE



Can you please explain how (which app to use) to modify the mono file?
#7 Posted: 8/3/2024 3:55:00 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

Can you please explain how (which app to use) to modify the mono file?


This file (smathstudio_desktop_mono) is just a shell script file.
Edit it with your favorite text editor.

vim, leafpad, kate, nano, scite, notepadqq, etc etc
#8 Posted: 8/6/2024 1:59:10 AM
David Cigna

David Cigna

0 likes in 2 posts.

Group: User

Just to add a tiny bit for those that are not linux gurus. Overlord's suggestion works well if you place the shell script in the same folder as SMathStudio_Desktop.exe, cd into the folder with a command line, then execute smathstudio_dektop_mono. For those that prefer using a launcher to the keyboard, you need to modify the script a little more.

#!/bin/sh
cd /home//Applications/SMath_Studio
export MONO_WINFORMS_XIM_STYLE=disabled
exec mono "./SMathStudio_Desktop.exe" "$@"

I made a folder called SMath_Studio within the Applications folder (which may or may not already exist in your home directory) and copied the entire SMath file structure there. Obviously, replace with your user name. Now create an entry in your launcher that executes the shell script. The reason that all of this is necessary is because SMathStudio_Desktop.exe needs to start in the same folder as all of the associated SMath files. Simply specifying the complete path in the "exec mono" line will not be enough.
  • New Posts New Posts
  • No New Posts No New Posts