Hi Bryan,

On 07/09/12 15:32, Bryan Horstmann wrote:
It would be nice to demonstrate a set-up
which just brought up QL quickly on switching on, as the QL did,
providing programming straight away, or the Xchange suite if needed.  No
need for it to be a QL look-alike.

Login to your pi as the pi user, for example. Then create/edit a file in your $HOME directory, named .xsession - leading dot and all lower case.

Add the following:

#!/usr/bin/sh
/usr/local/bin/qm &

Save and exit.

You can of course, replace qm with qx, qxx or qxxx to run Uqlx on login, or indeed, any other GUI type program can be started in the same file. Just add it's name into the file with a trailing ampersand to make it a batch job.

Make it executable:

chmod 755 ./xsession

This causes Uqlx (the qm version) to be run whenever you connect with a GUI session.

This works when you login as the pi user directly and the Pi is connected to the HDMI/TV or when you login to the pi user via a VNC session. (Which is what I tend to do.)

It only affects logins to a GUI and as the pi user. If you have more users set up and you want them to run something on login to a GUI, then instead of creating the same file in everyone's $HOME, create it in /etc/X11/Xsession.d and call it startup instead.

Well, that's the theory at least, I haven't tried the latter version myself.


HTH

Cheers,
Norm.



--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
Thorpe House
61 Richardshaw Lane
Pudsey
West Yorkshire
United Kingdom
LS28 7EL

Company Number: 05132767
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to