guysoft / FullPageOS

A raspberrypi distro to display a full page browser on boot
GNU General Public License v3.0
3.79k stars 229 forks source link

Xsession: unable to launch "/home/pi/scripts/start_gui" #276

Closed TakuyaSan420 closed 4 years ago

TakuyaSan420 commented 5 years ago

Hello, sorry for not using the template but its easier to understand like this. Basically, FullPageOS is running on my PiServer and it boots but right after the login it says " Xsession: unable to launch "/home/pi/scripts/start_gui" X session --- "/home/pi/scripts/start_gui" not found " So my question is, where in xSession is that path specified so I can point it towards a fixed directory on piServer Thanks

guysoft commented 5 years ago

What version of FullPageOS? Is this somethin you had running for a while and stopped? Or is this a new setup?

guysoft commented 5 years ago

Also see #229 , If you can provide input it might actually push it forwards.

guysoft commented 4 years ago

Closing if no reply

asdf1nit commented 4 years ago

@TakuyaSan420 here is the location you want to edit. https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/gui/filesystem/root_init/usr/share/xsessions/guisession.desktop

I'm not sure if your term piServer was just generic and not related to this project https://github.com/raspberrypi/piserver - https://www.raspberrypi.org/blog/piserver/

I initially tried to do this but came upon some issues that made it a little more involved than what I wanted and it didn't really fit the purpose since it requires a login. Here is a comment that really describes it: https://github.com/raspberrypi/piserver/issues/55#issuecomment-482802749

If this is what you are running and it's working for you can you please share some info on how you solved the auto login or if you solved this with a readonly fs how is that working out?

guysoft commented 4 years ago

No response from original poster

AlbertMN commented 1 year ago

For anyone else experiencing this; I faced this issue when setting the default user to another username than pi, after the latest Raspberry Pi OS update that no longer includes the default user, I figured others might try and use other usernames as well; don't.

guysoft commented 1 year ago

It might justify opening a new issue and fixing this.

AlbertMN commented 1 year ago

Agreed. I haven't looked much at the source, but if it's changing some static pi text with a variable, it would be a good solution.

I was also thinking about just comiting a note of it on the README. Not much of a fix of course.

DubbingBrothers commented 1 year ago

Hi !

I tried to install the last stable version of fullpageos from the Raspberry Pi Imager, But each time, after every steps of the first boot I got this message :

Xsession: unable to launch "/home/pi/scripts/start_gui" X session ---
"/home/pi/scripts/start_gui" not found; falling back to default session.

I have this message even if I modify or not the files on the boot partition.

I tried to install à classic version of Raspbian OS from Raspberry Pi Imager and everything work fine.

Any ideas ? Thanks by advance ! :)

guysoft commented 6 months ago

@DubbingBrothers It says there is a file missing: "/home/pi/scripts/start_gui

Can you see if that file exists?

You can also download it from here (dont forget to chmod it to 755): https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/gui/filesystem/home/pi/scripts/start_gui

It looks like a filesystem damage. Because it should be there.

DubbingBrothers commented 6 months ago

That's what I thought. I think it was my shrink command which had an error. Thanks for your return ;)

jnunez166 commented 2 months ago

I think I have figured out what is causing this issue. When using the Raspberry PI Imager and have configured it to change the name of the default user from pi to frank the path to the start_gui is now broken. If I can see where that path is hardcoded I can alter it and test this theory out.

guysoft commented 2 months ago

@jnunez166 You are experiencing a different issue, there is a bug if you set it to anything other than pi: https://github.com/guysoft/FullPageOS/issues/525