end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.34k stars 218 forks source link

[Issue] Install fails on EndevourOS #375

Closed NotAF0e closed 4 months ago

NotAF0e commented 4 months ago

When I run the install command on gnome EndevourOS bash <(curl -s "https://end-4.github.io/dots-hyprland-wiki/setup.sh")

I get the following errors:

hyprland-git - exit status 8
gradience-git - exit status 8
hyprpicker-git - exit status 4
python-cssutils - exit status 4

I can manually install an older version of cssutils with makepkg -sic (#342) but the other packages simply do not build correctly. I have also attempted to use EndevourOS with no de but the same issue arises.

clsty commented 4 months ago

Have you updated the whole system, e.g. sudo pacman -Syu?

aleandro6804 commented 4 months ago

When you run the installation script and it fails building some packages, you should see the yay/paru error saying "i tried build these packages: ........ but it failed". Try install all the packages in another terminal except for the hyprland-git, gradience-git, hyprpicker-git and python-cssutils (just to be sure you installed correctly all the other packages).

Then try fix those 4 packages individually and, in the installation script, press "ignore" when it asks you what to do with that error.

To solve the problem of gradiance and hyprpicker try installing the normal version (not the git one) (i had the same problem some weeks ago and i solved it like this).

For the hyprland i suggest you to uninstall the current version and install the git one manually.

I know it may be confusing so ask me if it is not completely clear.

end-4 commented 4 months ago

To solve the problem of gradiance and hyprpicker try installing the normal version

maybe it's a good idea to have this in install.sh i don't really care if a package is -git or not unless it's something i customize directly

NotAF0e commented 4 months ago

Ok thanks @aleandro6804 and yes @clsty I have. I have checked and all other packages have installed just fine. I have installed gradience and hyprpicker with your method but hyprland-git is still failing. Can I just install the stable hyprland package instead? I am getting error making: hyprland-git-exit status 8

end-4 commented 4 months ago

Can I just install the stable hyprland package instead

likely yes, just try it

NotAF0e commented 4 months ago

@end-4 can you somehow force css utils to only install this version as the newer versions are broken #342

NotAF0e commented 4 months ago

@end-4 ok I will try it

end-4 commented 4 months ago

@end-4 can you somehow force css utils to only install this version as the newer versions are broken

idk, maybe chaotic aur

NotAF0e commented 4 months ago

Ok everything is done, install script too. I have entered the tty to run Hyprland to run it but it just puts me back to the tty login screen.

NotAF0e commented 4 months ago

image This is my crash log, sorry that it is not in plaintext, cant copy from tty to my local pc

NotAF0e commented 4 months ago

This might actually be an issue because of the VM I will try again with different settings

aleandro6804 commented 4 months ago

Have you tried launching the Hyprland command not in the tty but in the console?

P.S. hyprland is known to suck in Virtual Machines (https://wiki.hyprland.org/Getting-Started/Master-Tutorial/#vm)

NotAF0e commented 4 months ago

I will (Edit: Same error)

NotAF0e commented 4 months ago

Ah man I might have to reformat my linux drive for the 1 millionth time lol. Ok I will repeat all of this on a fresh EndevourOS gnome setup

NotAF0e commented 4 months ago

Ok I have got it working. So the solution would be to change the install script so that only working CSS utils is installed and not using git versions of gradience and hyprpicker

NotAF0e commented 4 months ago

Maybe not, Firefox does not open (as well as most apps)

clsty commented 4 months ago

A tip: now you can specify another dependency list file.

I just added that option.

Run ./install.sh -h to see usage.

end-4 commented 4 months ago

Maybe not, Firefox does not open (as well as most apps)

this happens if you've logged in something else before hyprland. a reboot will help

NotAF0e commented 4 months ago

Sorry I don't understand, why would I need the dependency list file? Would this be to fix the gradience and hyprpicker problems?

clsty commented 4 months ago

Sorry I don't understand, why would I need the dependency list file? Would this be to fix the gradience and hyprpicker problems?

You may need it if you want another package to install as alternative to the original one. Though only use it when you really sure.

NotAF0e commented 4 months ago

I have rebooted but it does not automatically boot into Hyprland instead into gnome.

Edit: I booted hyprland from tty Firefox works

aleandro6804 commented 4 months ago

Do you mean that you can't see the entry in the greeter?

NotAF0e commented 4 months ago

@aleandro6804 yes on the gnome login screen there was no cog to let me choose Hyprland

aleandro6804 commented 4 months ago

Probably you don't have hyprland.desktop in your entries

Add a file called hyprland.desktop in your /usr/share/wayland-sessions and put this inside:

[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
Exec=Hyprland
Type=Application

(i'm using SDDM but it should work also in GDM)

NotAF0e commented 4 months ago

That file already existed

aleandro6804 commented 4 months ago

Have you tried with SDDM?

NotAF0e commented 4 months ago

No, whats the least destructive way of installing it? Or what about ly something minimal is better in my opinion. I find SDDM ugly edit: nvm you can customize it.

aleandro6804 commented 4 months ago

If you have systemd, you just need to install it from the official repository and then:

sudo systemctl disable gdm

sudo systemctl enable sddm

NotAF0e commented 4 months ago

Thanks a lot, that worked

end-4 commented 4 months ago

yes on the gnome login screen there was no cog to let me choose Hyprland

and you say the desktop entry already existed, which suggests you're using nvidia. there's this fix in arch wiki in case you wanna go back to gdm (you probably will) https://wiki.archlinux.org/title/GDM#Wayland_and_the_proprietary_NVIDIA_driver

NotAF0e commented 4 months ago

Lol ok thanks. I feel like this issue highlights that the install script is not really great for new users. If I knew how to write one I would do a pull request. An example of an install script I've had a good experience is with the one from hyprdots. It does literally everything for you so when the script is done you are at the greeter with everyone ready

end-4 commented 4 months ago

It does literally everything for you so

I dislike install scripts that do too much. From hyprdots readme:

The script modifies your grub config to enable Nvidia drm and theme

Subjective, but I think this is off-limit. I'd rather not have my system touched by a dotfiles script. What if I don't want to enable Nvidia?

aleandro6804 commented 4 months ago

Maybe it could be useful to ask during the installation if the user wants to automatically enable this feature or if he wants to install the normal version or the git one of the package

NotAF0e commented 4 months ago

@aleandro6804 yeah i agree giving the user choice over how automated the install is would be great. Or maybe having it detect if there may be issues in the install for example for Nvidia users (Nvidia f you 🖕)

NotAF0e commented 4 months ago

@end-4 yeah I see your perspective

clsty commented 4 months ago

I agree with @end-4 that the script should not do too much on system-level things.

Though, we already have some issues/discussions complaining about that they don't know how to launch Hyprland. One of them even tried to run Hyprland inside kde by directly run Hyprland in terminal emulator.

As the maintainer on the install script, I'm open to the idea that we could provide an option to automate the process, e.g. disable all DMs and let user to source some lines to enable autostart Hyprland on tty1. I may work on it some days later. (I still won't touch nvidia things. Though we can add it to the Wiki.)


I'll leave the main part on Wiki. Not able to find a suitable way to automate that in the script. Though I've made some changes to make it easier when using a tty for autostart Hyprland.


Done.

NotAF0e commented 4 months ago

Wonderful, thank you all