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

Hyprland wont start ags on startup #533

Closed
Anik200 opened this issue Aug 6, 2024 · 11 comments
Closed

Hyprland wont start ags on startup #533

Anik200 opened this issue Aug 6, 2024 · 11 comments

Comments

@Anik200
Copy link

Anik200 commented Aug 6, 2024

I did add exec-once= ags but it wont start

@Aylur
Copy link
Owner

Aylur commented Aug 7, 2024

most probably some an environment variable issue, but can't really help you without you also sharing the config

@Anik200
Copy link
Author

Anik200 commented Aug 8, 2024

most probably some an environment variable issue, but can't really help you without you also sharing the config

https://github.com/mewoocat/NixOS/tree/ags-overhaul
here are the config files i am using

@MonstrousOgre
Copy link

MonstrousOgre commented Aug 8, 2024

I was facing the same issue. For me, it was because sass was installed locally in my home directory, and my Hyprland config didn't have the updated PATH variable I was setting. I installed it system-wide and no longer have the issue

@Anik200
Copy link
Author

Anik200 commented Aug 8, 2024

I was facing the same issue. For me, it was because sass was installed locally in my home directory, and my Hyprland config didn't have the updated PATH variable I was setting. I installed it system-wide and no longer have the issue

image
this is what mine looks like

@Anik200
Copy link
Author

Anik200 commented Aug 8, 2024

image
something interesting happened, when i moved ags to /usr/bin/ it throws this error

@MonstrousOgre
Copy link

@Anik200 what happens when you type the full path to ags in your Hyprland config?

@Anik200
Copy link
Author

Anik200 commented Aug 10, 2024

The issue got fixed once i put exec-once=/usr/local/bin/ags
Instead of exec-once=ags. Thanks everyone for their time :)

@ctilley83
Copy link

ctilley83 commented Aug 11, 2024

The issue got fixed once i put exec-once=/usr/local/bin/ags Instead of exec-once=ags. Thanks everyone for their time :)

It's strange but providing an absolute path did not work for me. AGS launches fine from the command line but not using exec-once in hyprland.conf. I'm on the just released 0.42 version of hyprland.

image

Here's part of my hyprland.conf
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORMTHEME,kde
#env = QT_STYLE_OVERRIDE,kvantum
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = MOZ_ENABLE_WAYLAND,1
env = OZONE_PLATFORM,wayland
#env GTK_DEBUG=interactive waybar

Hyprland initialization options

exec-once = hyprpaper & hypridle
exec-once = /usr/local/bin/ags
#exec-once = waybar
exec-once = /usr/libexec/polkit-kde-authentication-agent-1
#exec-once = swaync & # start notification demon
exec-once = wl-paste --type text --watch cliphist store #Stores only text data
exec-once = wl-paste --type image --watch cliphist store #Stores only image data

@Anik200
Copy link
Author

Anik200 commented Aug 11, 2024

The issue got fixed once i put exec-once=/usr/local/bin/ags Instead of exec-once=ags. Thanks everyone for their time :)

It's strange but providing an absolute path did not work for me. AGS launches fine from the command line but not using exec-once in hyprland.conf. I'm on the just released 0.42 version of hyprland.

image

Here's part of my hyprland.conf
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORMTHEME,kde
#env = QT_STYLE_OVERRIDE,kvantum
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = MOZ_ENABLE_WAYLAND,1
env = OZONE_PLATFORM,wayland
#env GTK_DEBUG=interactive waybar

Hyprland initialization options

exec-once = hyprpaper & hypridle
exec-once = /usr/local/bin/ags
#exec-once = waybar
exec-once = /usr/libexec/polkit-kde-authentication-agent-1
#exec-once = swaync & # start notification demon
exec-once = wl-paste --type text --watch cliphist store #Stores only text data
exec-once = wl-paste --type image --watch cliphist store #Stores only image data

forgot to mention you have to add env = ags,/usr/local/bin/ags into your hyprland config too

@ducpm151061
Copy link

same here

@ctilley83
Copy link

ctilley83 commented Aug 12, 2024

I'm still having problems with this. I added the env environment variable plus an absolute path to AGS in my exec-once command.

EDIT:
I may have narrowed it down a bit. AGS seems to be launching and running in the background. When I launch ags from the command line, I get a warning that "a system tray is already running". If I comment out the exec-once command and reboot into hyprland, that warning disappears when I launch AGS from the command line. It seems to be related to this issue, but the resolution isn't clear enough. Not sure why AGS would launch with a different bus name.

#393

@Aylur Aylur mentioned this issue Sep 25, 2024
Merged
@Aylur Aylur closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
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

5 participants