Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Run AppImage: GLib-GIO-ERROR Settings schema error #8541

Closed
wyhaya opened this issue Jan 4, 2024 · 3 comments
Closed

[bug] Run AppImage: GLib-GIO-ERROR Settings schema error #8541

wyhaya opened this issue Jan 4, 2024 · 3 comments
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@wyhaya
Copy link

wyhaya commented Jan 4, 2024

Describe the bug

Unable to run Tauri-built AppImage on newer systems.

Error

# From: ubuntu:20.04 build, Run in: Fedora 39
./Example.AppImage

(tauri-hello:137661): GLib-GIO-ERROR **: 21:05:50.925: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
# Process exit

You must do this to run properly

GDK_BACKEND=x11 ./Example.AppImage

If we build AppImage from ubuntu:latest it works perfectly fine, But to make sure it works on older systems, it makes sense for us to build it in ubuntu:20.04.

Reproduction

  1. Build any Tauri App in Docker ubuntu:20.04
  2. Run the output .AppImage on Fedora 39 or Ubuntu 23.

You will see the following error:

(tauri-hello:137661): GLib-GIO-ERROR **: 21:05:50.925: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
# Process exit

Expected behavior

Can open the app normally

Full tauri info output

[✔] Environment
    - OS: Ubuntu 20.4.0 X64
    ✔ webkit2gtk-4.0: 2.38.6
    ✔ rsvg2: 2.48.9
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 20.10.0
    - pnpm: 8.14.0
    - npm: 10.2.3

[-] Packages
    - tauri [RUST]: 1.5.4
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.5
    - tauri-cli [RUST]: 1.5.9
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 1.5.9

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../src
    - devPath: ../src

Stack trace

No response

Additional context

Related issues:
surrealdb/surrealist#162

Other:
I try Spacedrive, which also seems to be built in ubuntu:20.04, but it works fine.

https://github.com/spacedriveapp/spacedrive/blob/8d9e6dbf39adc9b42bb6a12ff8938039d8732326/.github/workflows/release.yml#L29C19-L29C31

@wyhaya wyhaya added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jan 4, 2024
@FabianLars
Copy link
Member

Sad, i reverted the appimage bundler change to add back the GDK_BACKEND=x11 env var to all appaimages again.
It looked like it may not be needed anymore but sadly i was wrong. At least we know the exact error now, or one of them.

Thanks for the report.

P.S. No new tauri cli version is required but you may have to delete ~/.cache/tauri to force a redownload of the script (should happen without deleting it too but just in case it doesn't)

@Twig6943
Copy link

Twig6943 commented Dec 5, 2024

Any updates on this? Wayland is actively improving these days and tauri seems to be better than electron

@FabianLars
Copy link
Member

No. And nobody in the team will look into it. At this point we hope that the broader gtk/appimage community will figure it out (I doubt it though).

My recommendation would be to not rely on appimages (for tauri apps) if possible and rather use something like flatpaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants