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

[master] Some apps need 20-30 seconds to start #775

Closed
nwg-piotr opened this issue Oct 9, 2020 · 13 comments
Closed

[master] Some apps need 20-30 seconds to start #775

nwg-piotr opened this issue Oct 9, 2020 · 13 comments

Comments

@nwg-piotr
Copy link

I'm not sure if it's a bug, or something wrong in my configuration, but I don't know where even to start. It only happens on one of my two laptops (Ryzen + 2 x amdgpu, Arch, ly DM). The other one (intel + integrated graphics, ArchLabs, sddm) behaves well.

  • If I reboot and log into wayfire, some apps (waybar, Caja, Thunar, nwggrid) need 20-30 seconds to start. It seems sometimes they don't start at all. Other apps (e.g. Chromium, mousepad, lxappearance, Alacritty, Azote) start normally.

  • If I reboot, start sway, log out and start wayfire, everything works well.

@ammen99
Copy link
Member

ammen99 commented Oct 9, 2020

Try adding 0_environment = dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY XAUTHORITY.
The 0_environment is just so that it is first in the alphabetical order and is run first.

@nwg-piotr
Copy link
Author

You mean the startwayfire script?

@soreau
Copy link
Member

soreau commented Oct 9, 2020

You should put that in the autostart plugin config.

@nwg-piotr
Copy link
Author

Ah, all right. It helps. Many thanks!

@damianatorrpm
Copy link
Contributor

If someone comes across this you maybe also want 2_systemctl = systemctl --user import-environment
which needs to be run after 0_environment

@kode54
Copy link
Contributor

kode54 commented Oct 24, 2020

Hi, that step is redundant, unless you are saying there are environment variables missing from the above command.

@damianatorrpm
Copy link
Contributor

@kode54 They are not redundant.
Without the latter systemd.services that run GUI applicaitons don't see those.

@kode54
Copy link
Contributor

kode54 commented Oct 24, 2020

Yes, and that dbus command with the --systemd argument does precisely the same thing.

@damianatorrpm
Copy link
Contributor

If that's supposed to do so good, but it doesn't here.

@valpackett
Copy link
Contributor

(note: the --systemd flag in dbus-update-activation-environment doesn't require systemd, so it's okay to always have it in autostart configs etc.)

Another completely unrelated reason something similar could happen (that probably very few other people will experience, but documenting for completeness):
if gvfs integration with gnome-online-accounts is broken (as it is right now on FreeBSD) some GTK apps would stall for about 30 seconds waiting for g-o-a to reply, and killall goa-daemon can cancel the wait.

If that's supposed to do so good, but it doesn't here.

Hmm. The manpage suggests also adding DBUS_SESSION_BUS_ADDRESS to the list of variables, because systemd might not be aware of the d-bus session bus in your setup.

@affffc
Copy link

affffc commented Nov 3, 2021

If someone comes across this you maybe also want 2_systemctl = systemctl --user import-environment which needs to be run after 0_environment

After doing this flatpak gnome apps started respecting user theme settings. Thanks!

@LinArcX
Copy link

LinArcX commented Aug 18, 2022

What about void linux users?

Void uses runit instead of systemd.

@ammen99
Copy link
Member

ammen99 commented Aug 18, 2022

0_environment = dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY XAUTHORITY

@LinArcX
Use this. The --systemd means 'also pass these env vars pass to systemd if it is present'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants