Ax-Shell icon indicating copy to clipboard operation
Ax-Shell copied to clipboard

Auto start doesn't work

Open SleeperOfSaturn opened this issue 1 year ago • 18 comments

I just installed a fresh installation of arch and set up ax-shell, along with your dot files, but whenever I login, ax-shell doesn't auto-start

SleeperOfSaturn avatar Mar 08 '25 16:03 SleeperOfSaturn

I checked further, it's cuz of some problem with the auto start sequence

SleeperOfSaturn avatar Mar 08 '25 18:03 SleeperOfSaturn

My dotfiles are deprecated, so they might be conflicting. I'm not getting any of these issues you report, anywhere. The autostart for Ax-Shell is in ~/.config/Ax-Shell/config/hypr/ax-shell.conf. How exactly did you install the shell? When you install using the curl command as stated in the README, it starts the shell and since it is the first run, a config window opens. You press "accept", the configs will be saved and Ax-Shell will start. When you do this, some lines are appended in your hyprland.conf. These lines to be exact:

# Ax-Shell
source = ~/.config/Ax-Shell/config/hypr/ax-shell.conf

Check if they are present in hyprland.conf.

Axenide avatar Mar 08 '25 21:03 Axenide

I ran into the same problem. The ax-shell.conf doesn't generate in the ~/.config/Ax-shell/config/hypr directory. The config window never opens after running the install.sh from curl. I ran it manually and was able to start ax-shell, but none of the ax-shell keybinds seem to work. They don't seem to conflict with anything in my hyprland keybinds, so unsure what's going on there. Hyprland UWSM doesn't seem to work on my system, so could that be part of the issue?

sky-monkey007 avatar Mar 09 '25 03:03 sky-monkey007

I just tried and it does generate the file. Try running hyprctl reload.

Axenide avatar Mar 09 '25 03:03 Axenide

You can run uwsm inside Hyprland without using an uwsm session, so that's not really the problem. I'll have to add the hyprctl reload command to the config for sure, but pressing "Accept" does create the config file and appends it to hyprland.conf. Though I keep installing from scratch and everything seems to work just fine, so I don't really know what to say or what's happening. Any logs in the terminal?

Axenide avatar Mar 09 '25 03:03 Axenide

yup, so its cuz of some other autostart application basically didn't work on hyprland, returned an error, and subsequently terminated the hyprland initialization sequence.

SleeperOfSaturn avatar Mar 09 '25 13:03 SleeperOfSaturn

ALSO, some times it takes really really long to load like 20-30mins

SleeperOfSaturn avatar Mar 09 '25 14:03 SleeperOfSaturn

Woah, are you really waiting that long to see if it starts? That doesn't seem like a me problem in this case. Even in my dual-core laptop with 4 GB RAM this doesn't happen at all. Have you tried reinstalling? Also, I noticed that gray-git isn't installing with the script for some reason, which is really weird because I haven't touched it and it was working earlier this week. You might need to install it manually.

Axenide avatar Mar 09 '25 20:03 Axenide

Hi, i have just encountered the same problem, it doesn't generate the ax-shell.conf file, it correctly links it in the hyprland.conf file, but it doesn't exist. Anyway i could get it to generate?

melgio avatar Mar 09 '25 21:03 melgio

I'm reworking the installer, I'll come back when I'm done with it and y'all can test it out. I hope this fixes it. :(

Axenide avatar Mar 09 '25 22:03 Axenide

if it can help, i tried removing and cloning the repo again, this time it generates correctly the ax-shell.conf file, but it seams to be missing something, because now i tries to include colors.conf, but the file doesn't exist, and also it writes:

col.active_border = 0xff$primary
col.inactive_border = 0xff$surface

in the ax-shell.conf which causes some other error. I have also tried to manually add the colors.conf file and to add those two variables in a it but the shell still isn't generated/shown

melgio avatar Mar 09 '25 22:03 melgio

I went a bit further in with it and also found that in "widgets/circle_image.py" even in a fresh install reads image_file as a non null variable, but when it tries to get it in "home/user/.current.wall' he finds nothing and return an error:

File "/home/melgio/.config/Ax-Shell/widgets/circle_image.py", line 64, in __init__
    pix = GdkPixbuf.Pixbuf.new_from_file(image_file)
gi.repository.GLib.GError: gdk-pixbuf-error-quark: Couldn’t recognize the image file format for file “/home/melgio/.current.wall” (3)

which actually prevent the shell to be generated.

Trying to bypass the error by forcefully setting image_file as null seams to make it work, but as it is probably skipping some other file generation, it isn't able to locate the colors.css file resulting in a infinite loop of missing file error and the shell being rendered transparent. Image Hope this can somehow help.

melgio avatar Mar 09 '25 23:03 melgio

I went a bit further in with it and also found that in "widgets/circle_image.py" even in a fresh install reads image_file as a non null variable, but when it tries to get it in "home/user/.current.wall' he finds nothing and return an error:

File "/home/melgio/.config/Ax-Shell/widgets/circle_image.py", line 64, in __init__
    pix = GdkPixbuf.Pixbuf.new_from_file(image_file)
gi.repository.GLib.GError: gdk-pixbuf-error-quark: Couldn’t recognize the image file format for file “/home/melgio/.current.wall” (3)

which actually prevent the shell to be generated.

Trying to bypass the error by forcefully setting image_file as null seams to make it work, but as it is probably skipping some other file generation, it isn't able to locate the colors.css file resulting in a infinite loop of missing file error and the shell being rendered transparent. Image Hope this can somehow help.

I found the same issue too, also with the fork of Ax-shell called "Hyprfabricated".

sky-monkey007 avatar Mar 10 '25 00:03 sky-monkey007

that current wall bug is not in Hyprfabricated as we got fall back image at most u would get a transparent bar that could be fixed in both by changing wallpapers

tr1xem avatar Mar 10 '25 03:03 tr1xem

that current wall bug is not in Hyprfabricated as we got fall back image at most u would get a transparent bar that could be fixed in both by changing wallpapers

Indeed it's true, i sat image_file as Null, made the shell go transparent and then changed the wallpaper through the shell, after that i reverted back the changes made to widget/circle_image.py and rebooted, in this way it seams to have fixed this issue, but i think there are other minor bugs, once i'm home i'll try to report them too.

melgio avatar Mar 10 '25 09:03 melgio

Hey I changed the installer, could you check if it works now for you? Try uninstalling first, I haven't made the script for that but I'll give you some commands:

rm - rf ~/.config/Ax-Shell
rm ~/.current.wall

Remember to delete these lines from you hyprland.conf:

# Ax-Shell
source = ~/.config/Ax-Shell/config/hypr/ax-shell.conf

Now you can run the curl command again:

curl -fsSL https://raw.githubusercontent.com/Axenide/Ax-Shell/main/install.sh | bash

After it's done, it should open the config. Click Accept (or make changes first if you want) and it should start.

Axenide avatar Mar 11 '25 22:03 Axenide

fixed it! thanks, hehe... to think i didnt consider deleting .current.wall lol, the boot sequence was messed up cuz of that. thanks a lot! :D

SleeperOfSaturn avatar Mar 12 '25 02:03 SleeperOfSaturn

I'm so glad! Thanks.

Axenide avatar Mar 12 '25 02:03 Axenide