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

Apps take 1-3 seconds to launch #9459

Open
3 of 6 tasks
madser123 opened this issue Feb 22, 2025 · 6 comments
Open
3 of 6 tasks

Apps take 1-3 seconds to launch #9459

madser123 opened this issue Feb 22, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@madser123
Copy link

madser123 commented Feb 22, 2025

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

I don't know, I started using Hyprland only recently

System Info and Hyprland Version

System/Version info
Hyprland 0.45.2 built from branch v0.45.2-b at commit 12f9a0d0b93f691d4d9923716557154d74777b0a  ([gha] Nix: update inputs).
Date: 2024-11-19
Tag: v0.45.2, commits: 12f9a0d0b93f691d4d9923716557154d74777b0a
built against aquamarine 0.4.4


flags set:
debug


System Information:
System name: Linux
Node name: desktop
Release: 6.6.77
Version: #1-NixOS SMP PREEMPT_DYNAMIC Tue Feb 11 08:37:33 UTC 2025


GPU information:
08:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104 [GeForce RTX 3070] [10de:2484] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX x86_64 Kernel Module  565.77  Wed Nov 27 23:33:08 UTC 2024


os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.11.20250217.c618e28"
CPE_NAME="cpe:/o:nixos:nixos:24.11"
DEFAULT_HOSTNAME=nixos
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
ID_LIKE=""
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.11 (Vicuna)"
SUPPORT_END="2025-06-30"
SUPPORT_URL="https://nixos.org/community.html"
VARIANT=""
VARIANT_ID=""
VENDOR_NAME=NixOS
VENDOR_URL="https://nixos.org/"
VERSION="24.11 (Vicuna)"
VERSION_CODENAME=vicuna
VERSION_ID="24.11"


plugins:

Description

Note

While this may look like #9454 there some fundamental differences from my problem to the problem described in the other issue.

Whenever i try to launch an app (Through exec, Wofi, directly from the terminal or any other way) it takes around 1-3 seconds for it to "pop-up" in hyprland.

EDIT: Both wofi and swaync are the only apps that actually start as quickly as they should (They are overlays, so i don't know if that makes a difference), while other apps that need an actual window e.g. Ghostty, Firefox and more, don't.

I've tried everything i could find on the wiki, old github issues and on other forums. Nothing seems to fix it.

I've tested this on versions 0.45.2 and 0.47.2 - The issue occurs on both versions.
I've also tested on two different machines: My main pc with an nvidia card and a laptop with integrated AMD graphics. The issue also occurs on both of these.

I have both xdg-desktop-portal-hyprland, xdg-desktop-portal-wlr and xdg-desktop-portal-gtk installed.

I have added the dbus-update-activation-environment to my exec-once as described in the wiki.

I have checked journalctl for any weird logs, but nothing seems to stand out there either.

Nothing i've tried so far seems to work, and i don't know how to debug any further.

My full nixos and home-manager config can be seen here if needed: https://github.com/madser123/nixconf

The hyprland-specific configuration can be found in home/shared/hyprland.nix (home-manager) and config/shared/hyprland.nix (nixos)

How to reproduce

  1. Use my nixos config
  2. Launch an app in hyprland

Attach not paste

  • I understand that all text files must be attached, and not pasted directly. If not respected, this issue will likely get closed as spam

Checklist of files to include below

  • Hyprland config - hyprctl systeminfo -c (always include)
  • Crash report (always include in case of crash)
  • Video (always include in case of a visual bug)
  • Logs (might contain useful info such as errors)

Additional info & File uploads

hyprsysinfo.txt

@madser123 madser123 added the bug Something isn't working label Feb 22, 2025
@ikalco
Copy link
Contributor

ikalco commented Feb 23, 2025

try this
dbus-lanuch ${APP}
ex. dbus-launch waybar

@madser123
Copy link
Author

madser123 commented Feb 23, 2025

Tried launching both firefox and ghostty for testing - No difference from launching otherwise, unfortunately :/

@madser123
Copy link
Author

madser123 commented Feb 24, 2025

I switched from Ghostty to Rio for my terminal, which seemed to resolve the issue.. So maybe it has something to do with GTK based apps? Just a thought - Nothing concrete.

Just a note: Firefox still launches slow, so the issue is not entirely resolved, as i still don't know why this happens.

@ikalco
Copy link
Contributor

ikalco commented Feb 25, 2025

try checking the logs of xdg portal gtk in systemd

ive seen similar issues and they're usually related to xdg portals and dbus stuff

@madser123
Copy link
Author

madser123 commented Feb 25, 2025

jounalctl | grep "bus" -i
journalctl | grep "portal" -i

I tried looking into this via. Journalctl, but can't seem to find anything that should be failing to launch the apps or alike - I will look further, but i'm not sure if i'm looking in the right spot.

@madser123
Copy link
Author

I switched from Ghostty to Rio for my terminal, which seemed to resolve the issue

A correction on this statement. When launching rio for the first time, during a session, it still takes around 3 seconds to launch. Afterwards, it is pretty much instant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants