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

Changing to folderview via XDG snippet

Tags: None
(comma "," separated)
jasonayala
Registered Member
Posts
7
Karma
0
I'm trying to change plasma to use folderview desktop (to view desktop icons) for newly created users via XDG_CONFIG_DIR snippets (and not by kwriteconfig or /etc/skel). (I'm trying to do it via debian pkg and there are strict limitations). I know this is the new default in 5.10, but debian won't have that until 2036.

Anyone have experience wit XDG? I find it difficult to know exactly what can and can not be done with it, and how to display/debug it when settings aren't being loaded.

Here are my findings:

** Global default for new users is in /usr/share/plasma/shells/org.kde.plasma.desktop/contents/defaults
*** Under [Desktop] the line "Containment=org.kde.desktopcontainment" isn't "Containment=org.kde.plasma.folder"
** User's config is ~/.config/plasma-org.kde.plasma.desktop-appletsrc
*** Line 15, under [Containments][1], needs to change to plugin=org.kde.plasma.folder

However, placing the file "plasma-org.kde.plasma.desktop-appletsrc" in a currently used XDG_CONFIG_DIR directory, with the text:
Code: Select all
[Containments][1]
plugin=org.kde.plasma.folder


has no effect for newly created user.

Is /usr/share/plasma/shells/org.kde.plasma.desktop/contents/defaults being copied over and the rc file instantly ignored?
Is that rc file valid in XDG? Did I use the wrong setting?
User avatar
Rog131
Registered Member
Posts
828
Karma
10
Earlier KDE Forums:

Plasma 5.8 change default layout to "Folder View": viewtopic.php?f=289&t=141461
Set system wide default lock screen background image: viewtopic.php?f=289&t=141475

Is your 'plasma-org.kde.plasma.desktop-appletsrc' working one ? That is: if you shut the plasmashell down and replaced the existing 'plasma-org.kde.plasma.desktop-appletsrc' with your own will the plasmashell start with the new settings ?
jasonayala
Registered Member
Posts
7
Karma
0
Rog131 wrote:Set system wide default lock screen background image: viewtopic.php?f=289&t=141475

Right. I want to modify plasma.desktop-appletsrc for new users the same way the above poster changes 'kscreenlockerrc' via xdg. I'm just not sure that:

1: 'plasma-org.kde.plasma.desktop-appletsrc' is a valid file to modify via xdg
2: my code snippet is correctly formatted

Rog131 wrote:if you shut the plasmashell down and replaced the existing 'plasma-org.kde.plasma.desktop-appletsrc' with your own will the plasmashell start with the new settings ?


If I edit ~/.config/plasma-org.kde.plasma.desktop-appletsrc of an existing user and manually do the change to 'plugin=org.kde.plasma.folder' under '[Containments][1]', plasma loads with folder view as expected.
User avatar
Rog131
Registered Member
Posts
828
Karma
10
Looking how the distributions are editing the plasma 5 defaults....

KDE Forums - Folder view default desktop (javascript): viewtopic.php?f=289&t=138853
-> viewtopic.php?f=289&t=138853#p371933
fvogt:

In openSUSE it's done by adding

Code: Select all
[Desktop][org.kde.plasma.desktop]
Containment=org.kde.plasma.folder



to the contents/defaults file in the look-and-feel.



The Debian Stretch seems to add a javascript to the /usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates/ to add the Debian wallpaper as default. Package: desktop-base - https://packages.debian.org/stretch/desktop-base .

More of the plasma (5) desktop scripting:

- Plasma devel - Plasma desktop scripting: https://mail.kde.org/pipermail/plasma-d ... 50774.html
- PlasmaDesktopScripting (Note - some of the doc parts (paths) are for the plasma 4) : https://userbase.kde.org/KDE_System_Adm ... pScripting
- PlasmaTwoDesktopScripting: https://userbase.kde.org/KDE_System_Adm ... pScripting


Bookmarks



Who is online

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