You are not logged in.
Hello!
I'm currently working on "Guest" account that people can use to login in(using Gnome) my laptop. However the home directory of this user is in ram (using tmpfs) so that every time the user shutdown the computer all his/her data is gone.
what I want is to create a file /home/guest/.config/autostart/chromium.desktop every time that /home/guest is empty so that chromium is launched automatically.
the question is what folder or file should I modify in order to accomplish this?
Last edited by juanp_1982 (2015-08-28 14:17:54)
Offline
There's no 'skeleton' for autostart files. They're either loaded per user from ~/.config/autostart/, or /etc/xdg/autostart/ for everybody.
maybe you could use tmpfiles.d to copy the file, or just cp it via login script.
Offline
Hi ooo!
thanks for replying!
what I mean is some sort of skeleton for gnome in general because every time the "Guest" login all files related to gnome are re-generated
I think the answer is tmpfiles.d
thanks again!
Offline
gnome's settings are scattered all over the place, and I don't think there's a sane way to change the default settings.
I think you'd be better off creating root owned /home/guest_skel/ with all the settings files, and copying and chowning everything from there.
Offline
I solved it with tmpfiles.d.
I created two folder /home/guest/.config and /home/guest/.config/autostart then I created /home/guest/.config/autostart/chromium.desktop and wrote the content. now my guest account opens chromium by default and google.ca as homepage and maximized :-) thanks again!
Offline
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline