Results 1 to 8 of 8

Thread: Customising KDE for all users

  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    301

    Default Customising KDE for all users

    How do I stop the folder view widget starting for all users by default
    ( I don't care if they later use it themselves )

    Ta

    Mal

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Customising KDE for all users

    Quote Originally Posted by interele View Post
    How do I stop the folder view widget starting for all users by default
    ( I don't care if they later use it themselves )

    Ta

    Mal
    So, if you created a default user, with the kde settings you want, I wonder why you could not copy the two hidden files ~/.kde & ~/.kde4 from the default user to the new user and get the same results as the default? These files belong to the users group and to the user that they are copied from so as root, you must change the user name to that of the new user, leaving the group the same.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

    Default Re: Customising KDE for all users

    Quote Originally Posted by jdmcdaniel3 View Post
    So, if you created a default user, with the kde settings you want, I wonder why you could not copy the two hidden files ~/.kde & ~/.kde4 from the default user to the new user and get the same results as the default? These files belong to the users group and to the user that they are copied from so as root, you must change the user name to that of the new user, leaving the group the same.,
    I do not think that you have actually tried your suggestion.

    There is no ~/.kde any more unless using KDE-3.

    The problem is that the files in ~/.kde4 and ~/.local contain multiple absolute/canonical path references; e.g.
    in "~/.kde4/share/config/konsolerc"
    there is "Favorites=/home/username/.kde4/share/apps/konsole/Shell.profile".

    An approach I used with KDE3 was to create a specimen user configuration, then use sed to change all the "/home/specimen" strings to "~", "hostname" to "$HOSTNAME", etc. then use a copy of that home folder as the skel when creating new users.

    Now I just run a script to modify a default setup. This has the disadvantage that it requires a first graphical login to create ~/.kde4 etc.
    In this case delete the lines "plugin=folderview" from " /home/newuser/.kde4/share/config/plasma-desktop-appletsrc"

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,395
    Blog Entries
    1

    Default Re: Customising KDE for all users

    How do I stop the folder view widget starting for all users by default
    ( I don't care if they later use it themselves )
    If you want to effectively change the default new user config, which occurs whenever ~/.kde4 is found not to be present (ie it gets recreated), then, you can copy your customised .kde4 (without folder view widget and anything else you'd like) to /etc/skel/.kde4 directory. Now when a new user is created, it will come with all the settings inherited from the custom /etc/skel.kde4 directory, instead of the original defaults.

    I've done this previously, and it works.

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Customising KDE for all users

    On 01/05/2012 07:26 AM, deano ferrari wrote:
    >
    > /etc/skel/.kde4


    Deano gives the correct answer...(edit the skel to be the way you like
    and it will thereafter be used as the 'skeleton' to initially form the
    ~/.kde4 of every newly created user..)

    --
    DD http://tinyurl.com/DD-Caveat
    openSUSE®, the "German Engineered Automobiles" of operating systems!

  6. #6
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

    Default Re: Customising KDE for all users

    Yes you can edit /etc/skel, or use one of a range of custom skels when creating a new user. But you cannot just copy .kde4 from a working user into a skel without the new user being asked for the "default" user's password at first login, and attempting to write to the default user's home folder, nepomuk error messages etc.

    But this should copy the Desktop appearance of user to the default skel
    as root
    Code:
    cd /home/user
    rsync -aR .kde4/share/config/plasma* /etc/skel/
    rsync -aR .kde4/share/config/kwin* /etc/skel/
    At your own risk, etc.

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,395
    Blog Entries
    1

    Default Re: Customising KDE for all users

    But you cannot just copy .kde4 from a working user into a skel without the new user being asked for the "default" user's password at first login, and attempting to write to the default user's home folder, nepomuk error messages etc.
    Not true. All that was required was a straight copy to /etc/skel.kde4. I did this with the 'cp -r' command. The .kde4 directory will be copied as root and now owned by root. Then, when a new user is created via YaST, the .kde4 directory is set up, and the correct ownership is taken care of.

    The method is outlined here:

    Tutorials/Modify KDE Software Defaults - KDE UserBase Wiki

  8. #8
    Join Date
    Sep 2009
    Location
    UK
    Posts
    301

    Default Re: Customising KDE for all users

    Many thanks to everyone... I'm currently suffering from
    the lurgy so I will give this a go when I return to work.

    Ta

    Mal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •