@thagrol: What you meant to say was: Yes it worked for you and the OP.
I said exactly what I meant to say. The OP claims a .desktop file worked for them but I have no way to verify that.
Edit: This is NOT our first encounter over this very same thing. Remember this?
viewtopic.php?t=379124
I'm aware. And do not need to be reminded of that.
We disagree on the use of fixed duration sleep. Because there are better ways, because it's hacky, because a fixed duration is not guaranteed to be enough in all cases, and because it's lazy. The audio issue on that thread is also irrelevant to this one.
If you go back and read this thread, you'll see that I have said nothing about such usage of sleep. The OP also seems to think it is an undesirable option.
I should also point out that putting a .desktop file into $HOME/.config/autostart is not new (as you appear to claim). It's been a working method for many years. Its primary advantage is that it will work with X11/lxde, wayland/wayfire, wayland/labwc, and likely many other combinations. The point of disagreement with you in this thread was your use of "./.config/autostart" when it must be $HOME/.config/autostart. Yours will work if, and only if, the current working directory at the time of creation is $HOME. Anything else and the desktop/compositor/window manager will not find it.
The underlying issue in this thread is that the OP does not understand or did not take time to identify that the default on RPiOS is no longer using X11 with lxde. That's why their attempts to use the global lxde autostart file* failed.
What I take offence to is that they appear to be blaming me for their shortcomings, claiming that my guide is "completely wrong" (it isn't), that it is "simply incorrect" (guess what? It isn't) and demanding that "someone should correct the sticky post" (clearly without understanding that it is a document maintained by a single volunteer).
If this were my project I'd be using the method explained in 5.2.4. That's much more secure than any method that relies on automatic login. Especially as the initial user on RPiOS has unrestricted root level access via sudo. (hit the right hotkey combination to get a terminal window and you can do anything you want to).
*: using the global file is usually a poor choice anyway. Unless you actually want things to be run whenever any/every user starts the desktop.
Statistics: Posted by thagrol — Mon Nov 11, 2024 5:05 pm