Coder Social home page Coder Social logo

Comments (18)

soreau avatar soreau commented on September 26, 2024

Are you using the start_wayfire script that is installed with wf-install? I'm not sure if it would make a difference but if you're not using it, you might try it because it sets up the environment properly.

from wf-install.

 avatar commented on September 26, 2024

Yes, the one that gets installed to /opt/wayfire/bin/startwayfire.

from wf-install.

soreau avatar soreau commented on September 26, 2024

Did you install your own gtk or have multiple gtk installations?

from wf-install.

ammen99 avatar ammen99 commented on September 26, 2024

@four-griffins I find it strange that swaybg and oguri worked under Sway, but not under Wayfire. Could you try wf-background under sway?

from wf-install.

 avatar commented on September 26, 2024

I have both gtk2 and gtk3 installed (which I both need) and I use a custom theme made with oomox. When I change it
to Adwaita in .config/gtk-3.0/settings/ini it changes the background color generated by wf-background from dark grey to white.

Could you try wf-background under sway?

that gives me an error:

/opt/wayfire/bin/wf-background: error while loading shared libraries: libwf-config.so.0: cannot open shared object

from wf-install.

ammen99 avatar ammen99 commented on September 26, 2024

that gives me an error:

Oh yes you'd need to also set the env vars, LD_LIBRARY_PATH=/opt/wayfire/lib or lib64 depending on what your distro uses.

from wf-install.

 avatar commented on September 26, 2024

Now it works on Sway. I also fixed the invalid option value error by changing yes to true on that line.

from wf-install.

ammen99 avatar ammen99 commented on September 26, 2024

So this looks like because of different environment variables, wf-background is picking up a wrong version of gdk-pixbuf or something. I'd suggest comparing all environment variables in Sway and Wayfire to find the differences.

from wf-install.

 avatar commented on September 26, 2024

The main difference seems to be SHLVL=2 in sway and SHLVL=3 in Wayfire, and also XCURSOR_SIZE is set in sway. Fiddling around with these doesn't seem to make a difference (although I noticed that the mouse pointer is only too large if I hover over the background). There are also a few compositor-specific things like SWAYSOCK, I3SOCK, XDG_DATA_DIRS, LD_LIBRARY_PATH and a different WINDOWID.

from wf-install.

soreau avatar soreau commented on September 26, 2024

LD_LIBRARY_PATH is probably of the most interest.

from wf-install.

 avatar commented on September 26, 2024

It's currently set to /opt/wayfire/lib (and of course doesn't exist in Sway).

from wf-install.

soreau avatar soreau commented on September 26, 2024

If you run wayfire in sway, do things work?

from wf-install.

 avatar commented on September 26, 2024

No, I get a white window with the aspect ratio of my screen and the window title wlroots - WL-1. I can't use any keybinds either.

from wf-install.

 avatar commented on September 26, 2024

After a lot of head-against-desk-smashing I found the problem: when XDG_DATA_DIRS is set to /opt/wayfire/bin: it causes gdk-pixbuf2 to mess up for some reason.

Is that variable required for Wayfire to run, and if not, how do I disable it from being set?

from wf-install.

soreau avatar soreau commented on September 26, 2024

Are you sure it's not /opt/wayfire/share as it is here?

Anyway, just edit /opt/wayfire/bin/startwayfire and comment out the line that exports XDG_DATA_DIRS.

from wf-install.

ammen99 avatar ammen99 commented on September 26, 2024

Ah, I see the problem here: "If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used." (from the specification). So this is an issue in wf-install, we just need to add those two directories in case data_dirs is not set at all ...

from wf-install.

 avatar commented on September 26, 2024

Yes, I meant to say /usr/local/share, my bad. Thanks for the help!

from wf-install.

ammen99 avatar ammen99 commented on September 26, 2024

Also thanks for pointing this out :)

from wf-install.

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.