0

I know bookmarks are stored in a file ~/.config/gtk-3.0/bookmarks (https://askubuntu.com/questions/1352344/add-bookmarks-to-nautilus-via-terminal).

This file appears in HOME only after new user started GUI. I noted bookmarks include folders in HOME, folders created Who is creating Documents/Video/Pictures/etc. in home directory.

I want some other bookmarks added and available for the new user right after GUI loads. I use Linux Mint mostly.

I've tried writing session-wrapper=full_path_to_myscript in /etc/lightdm/lightdm.conf as cat /etc/X11/default-display-manager shows system uses lightDM (/usr/sbin/lightdm) after reading Execute script prior to cinnamon logout (unsing MDM or other display manager) and https://www.freedesktop.org/wiki/Software/LightDM/CommonConfiguration/:

session-wrapper is a the command to run for a session. This command is run as the user and needs to exec the command passed in the arguments to complete running the session. Use this if you need to do special setup for a user session. Note the default is 'lightdm-session' so you should chain to this if you need to override this setting.

But it does not work, I see no effect of any of my code (including added for testing echo abc > /home/$(id -u -n)/wrap-it) neither from myscript not changes I've made directly in 'lightdm-session'. New user session looks unaltered.

I do adduser test, switch to other tty, login as test, startx. Maybe lightDM is not run this way, but bookmarks for folders in HOME are created.

Added:

Try 2: I've created via GUI autostart desktop file in $HOME/.config/autostart. I've copied it to newly created user. Script worked.

If it can be done for all users altogether via editing files (like above for lightDM which did not work when I tried), I think it might be better solution.

Alex Martian
  • 861
  • 2
  • 12
  • 25

0 Answers0