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
Create symbolic link from ~/.local/bin/xmonad to /usr/bin/xmonad for login managers #354
Comments
We're definitely not going to tell users to symlink contents of their home directory into /usr/bin. because that's bad practice. We might want to clarify how users are supposed to ensure |
But there are distros which package xmonad with a session file of its own. This said, that's kinda their problem since they also should ship (I use a session file but it points to a local wrapper script that handles things like setting |
HI Mate, creating a symlink was just a quick fix so that xmonad would work with a gui login manager I have ~/.local/bin in my path but a login manager only checks the system path I couldnt find any documentation about getting the stack install of xmonad to work with a gui login manager I made a video about installing xmonad with stack and a viewer asked me to raise an issue on github because they couldnt get it to work without the symlink fix that i use, The issue for the end user is that they follow the guide and install xmonad with stack, I understand creating a symlink may not be best practice but its quick it works and does the job I do think the install page needs to provide some solution to this issue that works across distros, If there is a more elegant way of fixing the issue than using a symlink id be more than happy to test it out Not knocking you guys and your work I just couldnt find any documentation on how to resolve the issue anywhere online other than creating a symlink |
Maybe we should just tell people to use absolute path in their |
HI Mate, im pretty sure i tried adding the full path to a xmonad.desktop file in /usr/share/xsession and it didnt work also i think xsessionrc is debian specific and so wont work on distros like arch, fedora and freebsd |
What will guaranteed not work in a session file are environment variables and |
Hi Mate, ill play around with xsessions file worked on one machine running ubuntu but not another machine running ubuntu |
As I mentioned, environment variables (such as |
I'm reopening because I think something should happen—if only a note from our side that users should be aware of this |
Worth noting here is that session files are generally read by the display manager at its startup, so per-user things are not available (hence no environment variables and only the system default |
I made a video about xmonad and xessions files explaining some of the issues i came across as well as using xmonad-x86_64-linux instead of xmonad in your xsession file |
Which is why we recommend using a xsession .desktop file which invokes |
That only works so long as you don't want to start other wm's with your login manager, right? If one wants multiple options (for whatever reason) then putting |
That is however the traditional way of doing things. There's also the RHEL/Fedora trick of having a session which copies |
We've had this come up on IRC more than once now—I'd still like to suggest something in case people want to have multiple options for a wm in their display manager |
Doesn't creating a |
It does, but you can't put that in a cabal or stack package. OS distributions, on the other hand, can. |
if you are using a graphical login manager you need to create a symbolic link
from ~/.local/bin/xmonad to /usr/bin/xmonad otherwise the login manager wont login to xmonad
Because login manages wont search a users path for binaries
Maybe the docs could be updated to include a section about building xmonad with stack
and creating a symbolic link to /usr/bin/xmonad when creating the xmonad.desktop file
heres my notes about installing xmonad with stack and creating the xmonad.desktop file and symbolic link
https://github.com/NapoleonWils0n/cerberus/blob/master/xmonad/xmonad-ubuntu-stack-install.org#create-a-symbolic-to-usrbinxmonad
I also made a tutorial about installing xmonad with stack on youtube
https://www.youtube.com/watch?v=XvKAiR403O0
The text was updated successfully, but these errors were encountered: