This forum has been archived. All content is frozen. Please use KDE Discuss instead.

question on kiosk mode

Tags: None
(comma "," separated)
dhotiwalla
Registered Member
Posts
3
Karma
0
OS

question on kiosk mode

Fri Feb 10, 2012 12:46 am
Hi,

I'm running Kubuntu 11.10 with KDE 4.7.4.

Here is what I want to accomplish:

When the system boots up, it should display the default login window and wait for 10 seconds. If no login attempt is made within those 10 seconds, it should auto login a predefined user without asking for password.

I've got this part working.

Now what I want to do is have this auto logged in user operate in kiosk mode. As soon as the autologin occurs, a predefined application should start up (e.g chrome browser) and the user should not be allowed to start any other app or do anything else except browse the internet. When chrome is closed, the user should be logged out automatically.

Can someone explain how this can be done?

thanks for your help
Dhoti
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: question on kiosk mode

Sat Feb 11, 2012 10:38 pm
The best way to do this would be to configure a minimal session which starts the application(s) you desire it to use.

Otherwise, you could disable the Autostart of Plasma, and have it autostart the desired application instead.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
dhotiwalla
Registered Member
Posts
3
Karma
0
OS

Re: question on kiosk mode

Mon Feb 13, 2012 6:44 pm
bcooksley wrote:The best way to do this would be to configure a minimal session which starts the application(s) you desire it to use.

Otherwise, you could disable the Autostart of Plasma, and have it autostart the desired application instead.


Thank you for your reply. I like your suggestion of disabling plasma autostart. I've googled for it but could not find out how to do it. Can you give me some ideas on how to do this?

thanks
Dhoti
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: question on kiosk mode

Tue Feb 14, 2012 2:19 am
You need to create a file named "plasma-desktop.desktop" with the following contents in ~/.local/share/autostart or edit the file in /usr/share/autostart/

Code: Select all
[Desktop Entry]
Hidden=true


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
dhotiwalla
Registered Member
Posts
3
Karma
0
OS

Re: question on kiosk mode

Tue Feb 14, 2012 4:41 am
bcooksley wrote:You need to create a file named "plasma-desktop.desktop" with the following contents in ~/.local/share/autostart or edit the file in /usr/share/autostart/

Code: Select all
[Desktop Entry]
Hidden=true


I'm afraid that did not work. I even tried renaming autostart to Autostart. No luck. If I made the changes to /usr/share/autostart wouldn't that affect all users? I want this to have an effect on only one user. Here is my log:

mcuser@kubuntu-hp:~/.local/share/autostart$ pwd
/home/mcuser/.local/share/autostart
mcuser@kubuntu-hp:~/.local/share/autostart$ ls -l
total 4
-rw-r--r-- 1 mcuser users 29 2012-02-13 20:26 plasma-desktop.desktop
mcuser@kubuntu-hp:~/.local/share/autostart$ cat plasma-desktop.desktop
[Desktop Entry]
Hidden=true
mcuser@kubuntu-hp:~/.local/share/autostart$

Also, once I successfully stop the desktop being displayed, where do I set the name of my application which should get launched in place of the plasma desktop?

Thank you so much for your help.
Dhoti
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: question on kiosk mode

Thu Feb 16, 2012 1:16 am
Sorry, it should be ~/.config/autostart not ~/.local/share/autostart

If you simply place a copy of the applications *.desktop file (which you can drag from the Kickoff menu) in ~/.config/autostart it should be autostarted instead.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]