joukewitteveen / xlogin

Automatic X login service for systemd
BSD 2-Clause "Simplified" License
72 stars 9 forks source link

Use default xinitrc #11

Closed rapgro closed 8 years ago

rapgro commented 8 years ago

If there's no custom ~/.xinitrc available, xlogin should look for /etc/X11/xinit/xinitrc automatically. Currently, it's needed to use a symlink at least.

joukewitteveen commented 8 years ago

Why should it look for that file? xlogin is not xinit. It does not require it and does not strive at being compatible (I currently think using .xinit was a mistake and I should have gone with .xlogin). Indeed, both are very similar and in many cases a .xinit script can be used with both packages.

Of course, if there is a good reason to support a fallback default file, we should use it. However, without it everything is simple and predictable. systemd provides enough surprises by itself, let's not introduce the potential for more ;-).

rapgro commented 8 years ago

Well, that means a configuration effort for downstream, e.g. if my package gets installed in Fedora. And generally, I doubt xlogin can work for more than one user in parallel.

joukewitteveen commented 8 years ago

But we cannot even guarantee that it will work with any /etc/X11/xinit/xinitrc supplied by a third party (xinit that is). The problem is that the xlogin version of .xinitrc must not return. I don't remember this being a necessary requirement of the xinit version.