Octave6.3.0 installation with snap => a lot of warnings when octave used

jari@cosmo:~$ octave
2021/09/17 23:20:28.702000 cmd_run.go:1011: WARNING: cannot start document portal: Expected portal at "/run/user/1000/doc", got "/home/jari/snap/octave/doc"
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1000/snap.octave', please create it with 0700 permissions.
Qt: Session management error: Could not open network socket
QApplication: invalid style override passed, ignoring it.
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"

And the setup below:
jari@cosmo:~$ echo $XDG_RUNTIME_DIR
/home/jari/snap/octave
seems rejected by octave at the startup.

Can you try:

mkdir -p /run/user/1000/snap.octave

chmod 0700 /run/user/1000/snap.octave

If above fails, try with sudo.

Snap package?

It's well known that there's problems with apps running in sandbox like snap and flatpak. If @Aravisian methode doesn't work I suggest looking for .deb/PPA or otherwise.

3 Likes

The flatpak maybe is better this case.
Is it possible to get the octave 6.3.0 without the 'sandbox'?

I can run it with:
flatpak run org.octave.Octave --persist

But this case some commands do not work outside the 'sandbox', like
octave 'system("pidof xclock")'.
And in case of the flatpak I didn't see having the flatpak-spawn installed.
What should I have to get it working?

1 Like

If I may ask... why not just sudo apt install octave ?

1 Like

I wanted the octave version 6.3.0.
Apt case it looks 5.2.0 version.
Later on I installed it with flatpak (even it has it's consequencies also).