Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Local UI does not start after software update
#13
(03-01-2024, 01:15 AM)NHWally Wrote:
(02-29-2024, 11:35 PM)Tim Curtis Wrote: Why do you think its not robust given that images are to be created with the Pi imager which only allows one userid?

For example if there are multiple userid's in /home each populated with the usual files then what logic during startup would be used to determine which one to use?
Tim,
  I know that I used Pi imager to install the previous Moode image, and so I am at a loss as to how the pi users home folder majikly appeared!
Perhaps I didn't set up the user in the imager, but did it on first boot??

In anycase, the current implementation will fail if the default user does not sort first in the file listing.

Wouldn't it be better to determine the default user directly?

The following would not have the issue (the first word is the username):
grep 1000 /etc/passwd

or (returns only the username)
awk -F":" '$3=="1000" {print $1}' /etc/passwd


-W


I dunno whether using another method to get the userid is going to accomplish anything other than masking some sort of setup or configuration breakage resulting in more than one userid in /home.

It might be worthwhile to display a notification that there are other userid's in /home, and there should only be one otherwise things like local display might not work. Then user could go in and see what's going on.

Something like that.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Local UI does not start after software update - by Tim Curtis - 03-01-2024, 02:36 AM

Forum Jump: