Giter Club home page Giter Club logo

Comments (8)

l4l avatar l4l commented on June 8, 2024

Are you using a wayland compositor (wlroots-based to be precised)? What's the output of ldconfig -p | grep wayland?

from yofi.

PAI5REECHO avatar PAI5REECHO commented on June 8, 2024

I'm using SwayWM. There's no ldconfig cache on NixOS (NixOS/nixpkgs#35387) so that command doesn't work:

$ ldconfig -p | grep wayland
ldconfig: Can't open cache file /nix/store/q29bwjibv9gi9n86203s38n0577w09sx-glibc-2.33-117/etc/ld.so.cache
: No such file or directory

from yofi.

l4l avatar l4l commented on June 8, 2024

According to this the problem is with connection to the $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY. Maybe some permission missing? You may find the issue with strace -e openat `which yofi` 2>&1 | grep $XDG_RUNTIME_DIR .

from yofi.

l4l avatar l4l commented on June 8, 2024

Ah, not really. The problem is actually that the app cannot find libwayland-client.so library.

from yofi.

l4l avatar l4l commented on June 8, 2024

I consider this one as unrelated to yofi directly so closing this. Feel free to add some details and reopen

from yofi.

mountainfloating avatar mountainfloating commented on June 8, 2024

Im having the same issue. Void Linux - Sway WM.
The issue is with line 159-161 in Master:
let (env, display, queue) = sctk::new_default_environment!(Env, desktop, fields = [layer_shell: SimpleGlobal::new()]) .expect("Initial roundtrip failed!");
It seems the issue is only in 0.16 of sctk. I tried an example of the master branch with cargo run --example image_viewer and it worked. Seems to be a bit of a rewrite to go from 0.16 to master though, so I don't know if you'll want to do that yet.
Would be happy to use yofi!

from yofi.

l4l avatar l4l commented on June 8, 2024

That seems strange for me, could you also try to launch yofi with dlopen?:

diff --git a/Cargo.toml b/Cargo.toml
index 7227979..b84d31d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ fontconfig = { version = "0.5.0", features = ["dlopen"] }
 
 anyhow = "1.0.51"
 wayland-protocols = { version = "0.29.5", default-features = false, features = ["unstable_protocols", "client"] }
-sctk = { version = "0.16.0", package = "smithay-client-toolkit", features = ["calloop"] }
+sctk = { version = "0.16.0", package = "smithay-client-toolkit", features = ["calloop", "dlopen"] }
 raqote = { version = "0.8.1", default-features = false }
 xdg = "2.4.0"
 fep = { version = "1.3.0", package = "freedesktop_entry_parser" }

SCTK's master is being significantly rewritten indeed. And I could upgrade only once it released.

from yofi.

mountainfloating avatar mountainfloating commented on June 8, 2024

Sorry that doesn't seem to change anything. I have the same error with kickoff, so i think its just somehow SCTK

from yofi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.