Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
2.23k stars 116 forks source link

Hyprland wont start ags on startup #533

Open Anik200 opened 3 months ago

Anik200 commented 3 months ago

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

Aylur commented 2 months ago

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

Anik200 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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

MonstrousOgre commented 2 months ago

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

Anik200 commented 2 months ago

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

ctilley83 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

same here

ctilley83 commented 2 months ago

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