You are not logged in.

#1 2015-08-27 23:02:56

juanp_1982
Member
From: Ottawa, Ontario, Canada
Registered: 2012-09-02
Posts: 69

is there something like /etc/skel for Gnome3? [SOLVED]

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

#2 2015-08-27 23:31:34

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: is there something like /etc/skel for Gnome3? [SOLVED]

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

#3 2015-08-27 23:42:53

juanp_1982
Member
From: Ottawa, Ontario, Canada
Registered: 2012-09-02
Posts: 69

Re: is there something like /etc/skel for Gnome3? [SOLVED]

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

#4 2015-08-28 01:12:00

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: is there something like /etc/skel for Gnome3? [SOLVED]

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

#5 2015-08-28 03:47:14

juanp_1982
Member
From: Ottawa, Ontario, Canada
Registered: 2012-09-02
Posts: 69

Re: is there something like /etc/skel for Gnome3? [SOLVED]

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

#6 2015-08-28 11:31:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: is there something like /etc/skel for Gnome3? [SOLVED]

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB