ags icon indicating copy to clipboard operation
ags copied to clipboard

Hyprland wont start ags on startup

Open Anik200 opened this issue 1 year ago • 11 comments

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

Anik200 avatar Aug 06 '24 17:08 Anik200

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

Aylur avatar Aug 07 '24 21:08 Aylur

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

Anik200 avatar Aug 08 '24 15:08 Anik200

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

MonstrousOgre avatar Aug 08 '24 15:08 MonstrousOgre

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 avatar Aug 08 '24 16:08 Anik200

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

Anik200 avatar Aug 08 '24 16:08 Anik200

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

MonstrousOgre avatar Aug 09 '24 04:08 MonstrousOgre

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

Anik200 avatar Aug 10 '24 13:08 Anik200

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

ctilley83 avatar Aug 11 '24 04:08 ctilley83

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

Anik200 avatar Aug 11 '24 06:08 Anik200

same here

ducpm151061 avatar Aug 11 '24 16:08 ducpm151061

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.

https://github.com/Aylur/ags/issues/393

ctilley83 avatar Aug 12 '24 16:08 ctilley83