| Summary: | 7.5 BASIC shell function fails (flatpak and snap versions) | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Steve Sibelman <sib> |
| Component: | BASIC | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | stephane.guillou |
| Priority: | medium | ||
| Version: | 7.5.0.3 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 108908, 114031 | ||
Hi Steve, thanks for the report and the kind words!
I can confirm that a macro of the type:
Sub Main
shell("/usr/bin/konsole",2)
End Sub
... will run in LibreOffice installed from debs but gives a BASIC runtime error from the Snap.
Rerpoduced with:
Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: 81bce3cd17f5e01886721863a4fa0d99f91033a6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
I checked the permissions granted to the snap (everything allowed except for Bluetooth devices).
snap version
snap 2.58.2
snapd 2.58.2
series 16
ubuntu 20.04
kernel 5.15.0-67-generic
As a workaround, please install from debs: https://www.libreoffice.org/download/download-libreoffice/
Similar issue on ask.libreoffice: https://ask.libreoffice.org/t/shell-function-crashes/43866
|
Description: BASIC Macros that invoke executuables via the shell function throw a "BASIC runtime error. File not found." Same macros work fine in the current (K)Ubuntu 7.3.7.2 package. (I haven't previously run LibreOffice as a snap or flatpak.) Steps to Reproduce: 1. Execute a macro with this shell command: shell("/usr/bin/konsole",2) 2. 3. Actual Results: Macro editor launches, highlighting the "shell" line of the macro, and a box shows the error message: BASIC runtime error. File not found. Expected Results: The software should have launched the desired application, in this case konsole (but, in my use case, a LibreOffice program). Reproducible: Always User Profile Reset: Yes Additional Info: I hope that, when Ubuntu ships 7.5, this will be gone. Maybe it's an artifact of using snap or flatpak -- something I haven't done with LibreOffice before. Best of luck, and thanks for all you do to make LibreOffice great!