Skip to content
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

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

Closed
TakuyaSan420 opened this issue May 28, 2019 · 14 comments
Closed

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

TakuyaSan420 opened this issue May 28, 2019 · 14 comments

Comments

@TakuyaSan420
Copy link

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
Copy link
Owner

guysoft commented May 29, 2019

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

@guysoft
Copy link
Owner

guysoft commented May 30, 2019

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

@guysoft
Copy link
Owner

guysoft commented Jun 23, 2019

Closing if no reply

@asdf1nit
Copy link
Contributor

asdf1nit commented Jul 4, 2019

@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:
raspberrypi/piserver#55 (comment)

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
Copy link
Owner

guysoft commented Jul 18, 2019

No response from original poster

@guysoft guysoft closed this as completed Jul 18, 2019
@AlbertMN
Copy link

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
Copy link
Owner

guysoft commented Jun 19, 2022

It might justify opening a new issue and fixing this.

@AlbertMN
Copy link

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.

@BobRubeus
Copy link

BobRubeus commented Apr 19, 2023

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
Copy link
Owner

guysoft commented Nov 7, 2023

@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.

@BobRubeus
Copy link

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

@jnunez166
Copy link

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
Copy link
Owner

guysoft commented Mar 17, 2024

@jnunez166 You are experiencing a different issue, there is a bug if you set it to anything other than pi:
#525

@HagridLeVrai
Copy link

Hi,

Got the same issue and creating a symbolic link did solve the issue.

Here's how to do it if it helps some people :

mkdir -p /home/pi/scripts
ln -s /home/YOURUSER/scripts/* /home/pi/scripts/

and give permissions to your user to read/execute what's in the directory by making him the owner of it:

sudo chown -R YOURUSER:YOURUSER /home/pi/scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants