Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-19 Thread Felix Miata

On 2013-08-19 11:37 (GMT+0200) Niki Kovacs composed:


* Deactivate all graphical effects. [1]

...

[1] It's not that I don't like these. It's just that sometimes I have to
install desktops on relatively low-spec hardware, and this is just to be
on the safe side.


One can do virtually all bling disabling globally (even on faster systems), 
instead of within KDE, thus:


# /etc/X11/xorg.conf.d/70-extensions.conf
Section "Extensions"
Option  "Composite" "Disable"
EndSection
--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-19 Thread Niki Kovacs

Le 19/08/2013 15:21, Nowardev-Team a écrit :


I've looked at the desktop scripting page in TechBase and it
says there should
be a global property named "locked" that is read-/writable.

Try something like

locked = true;

in you script.


Kevin! It worked! You're a star!



The german philosopher Georg Christoph Lichtenberg once said something 
like you often have to do things in a very complicated way before being 
able to do them in a simple way. Now here's an illustration of that 
principle.


Niki


--
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-19 Thread Nowardev-Team
lol i didn't read that thank you too kevin


2013/8/19 Niki Kovacs 

> Le 19/08/2013 14:22, Kevin Krammer a écrit :
>
>  I've looked at the desktop scripting page in TechBase and it says there
>> should
>> be a global property named "locked" that is read-/writable.
>>
>> Try something like
>>
>> locked = true;
>>
>> in you script.
>>
>
> Kevin! It worked! You're a star!
>
> Thanks very much.
>
>
> Niki
>
> --
> Microlinux - Solutions informatiques 100% Linux et logiciels libres
> 7, place de l'église - 30730 Montpezat
> Web  : http://www.microlinux.fr
> Mail : i...@microlinux.fr
> Tél. : 04 66 63 10 32
> __**_
> This message is from the kde mailing list.
> Account management:  
> https://mail.kde.org/mailman/**listinfo/kde
> .
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.
>
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-19 Thread Niki Kovacs

Le 19/08/2013 14:22, Kevin Krammer a écrit :

I've looked at the desktop scripting page in TechBase and it says there should
be a global property named "locked" that is read-/writable.

Try something like

locked = true;

in you script.


Kevin! It worked! You're a star!

Thanks very much.

Niki

--
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-19 Thread Kevin Krammer
On Monday, 2013-08-19, Niki Kovacs wrote:
> OK, I managed to go further in my default configuration. I edited a
> series of small files in /etc/skel/.kde/share/config to alter KDE's
> default configuration.

Just as an additional data point:
you can also add the config into the directory hierarchy, e.g. any path in 
kde4-config --path config

(list can be expanded by environment variable $KDEDIRS)

> How can I have widgets default to locked? Users *can* unlock them
> afterwards eventually, though I'd like to know how I can theoretically
> lock everything down for good.

I've looked at the desktop scripting page in TechBase and it says there should 
be a global property named "locked" that is read-/writable.

Try something like

locked = true;

in you script.

Cheers,
Kevin

P.S.: it would be great if you could document your setup somewhere once you 
are satisfied and link to it from the documentation on TechBase.
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-19 Thread Niki Kovacs

Le 19/08/2013 12:55, Nowardev-Team a écrit :

in that configs there are no destkop effects no nepomuck lighter krunner
etc ... just read , there is even a nice feature in kate that can help
you ...

just open every configs file on ~/.kde and then you can modify your
settigs  kate will warn you if a file has been modified ,... anyway
there is already that project that can help you. it has a wallpaper
customize icons colors and of course nepo and desktop effects turned
off. even the kickoffrc file should be there where you can define your
prefered applications  just download that project and look around at the
files


Thanks again. I already looked at your project, and it helped me advance 
a little bit. On the other hand, I use Slackware (not Kubuntu).


I tried the panel lockdown as suggested, put a line in layout.js, but it 
doesn't seem to have any effect. The new user can still shoot himself in 
the foot and erase the panel.


Cheers,

Niki

--
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-19 Thread Nowardev-Team
look at this 
http://kde-apps.org/content/show.php/kde+Customization+kit?content=148430

in that configs there are no destkop effects no nepomuck lighter krunner
etc ... just read , there is even a nice feature in kate that can help you
...

just open every configs file on ~/.kde and then you can modify your settigs
 kate will warn you if a file has been modified ,... anyway there is
already that project that can help you. it has a wallpaper customize icons
colors and of course nepo and desktop effects turned off. even the
kickoffrc file should be there where you can define your prefered
applications  just download that project and look around at the files

for folderview there is no way to script it ... at least on 4.10 i guess

you need to tweak some config files

for panels height   as you can see in the kate snippets

and there is no way to lock wiget i guess via javascript maybe aseigo can
confirm this


var screenrect = screenGeometry(0); // get information about your screen h w

var panel = new Panel
if (panelIds.length == 1) {
panel.location = 'bottom'
//panel.location = 'top'
//panel.hiding= 'autohide' //"windowscover" or "windowsbelow"
//panel.length = (screenrect.width/2)-(screenrect.width/16);

panel.height = screenrect.height/30;   //
<=
THIS ONE


//panel.alignment = "left" "right" "center"
//panel.locked = false true
}




2013/8/19 Niki Kovacs 

> Le 18/08/2013 15:06, Kevin Krammer a écrit :
>
>> I think in case of Plasma the only viable approach is scripting.
>>
>
> Hi again,
>
> I did a lot of experimenting yesterday evening and this morning. So far I
> have a quite usable default configuration. Here's my 00-defaultLayout.js:
>
> loadTemplate("org.kde.plasma-**desktop.defaultPanel")
>
> for (var i = 0; i < screenCount; ++i) {
> var desktop = new Activity
> desktop.name = i18n("Workstation")
> desktop.screen = i
> desktop.wallpaperPlugin = 'image'
> desktop.wallpaperMode = 'SingleImage'
> var wallpaper = "Ethais"
> desktop.currentConfigGroup = new Array("Wallpaper", "image")
> desktop.writeConfig("**wallpaper", wallpaper)
> desktop.writeConfig("**userswallpaper", wallpaper)
>
> //Create more panels for other screens
> if (i > 0){
>
> var panel = new Panel
> panel.screen = i
> panel.location = 'bottom'
> panel.height = panels()[i].height = screenGeometry(0).height >
> 1024 ? 35 : 27
> var tasks = panel.addWidget("tasks")
> tasks.writeConfig("**showOnlyCurrentScreen", true);
> }
> }
>
> And here's the corresponding layout.js:
>
>
> var panel = new Panel
> if (panelIds.length == 1) {
> // we are the only panel, so set the location for the user
> panel.location = 'bottom'
> }
>
> panel.height = screenGeometry(panel.screen).**height > 1024 ? 70 : 54
> panel.addWidget("launcher")
> tasks = panel.addWidget("tasks")
> panel.addWidget("systemtray")
> panel.addWidget("digital-**clock")
> panel.addWidget("lockout")
>
>
> tasks.currentConfigGroup = new Array("Launchers")
> tasks.writeConfig("browser", "preferred://browser, , , ")
> tasks.writeConfig("**filemanager", "preferred://filemanager, , , ")
>
> What I could manage so far:
>
> * Have a bigger panel (some of the users complain about small icons)
> * Don't show the activity button next to the Kickoff menu
> * Define a more "corporate" default wallpaper (Ethais is perfect)
> * Add a default shutdown button on the lower right side of the panel
>
> I did this mainly by looking at other folks' mods on the web, and trying
> to figure out how I can adapt them for my own needs. I'm moving in very
> small steps, with a lot of trial and error.
>
> Now here's some more things I'd like to do this way (e. g. by scripting),
> but I don't know how to go about it, in terms of mere syntax. I'll describe
> them in plain english:
>
> * Add some custom launchers to the Kickoff menu ("Favoris").
> * Deactivate all graphical effects. [1]
> * Deactivate the semantic desktop and file indexation. [1]
> * Change mouse cursor to Whiteglass theme
> * Default to double click.
> * Default the desktop to "Folder View" for ~/Desktop.
> * Define Firefox as the default web browser.
> * Define Thunderbird as the default mail client.
> * Plasma widget are locked by default.
> * Kiosk mode would be even better, e. g. most things are immutable.
>
> [1] It's not that I don't like these. It's just that sometimes I have to
> install desktops on relatively low-spec hardware, and this is just to be on
> the safe side.
>
> If you have one or more suggestions for any of the points above, I'd be
> grateful. For now, "I've reached the end of my latin", as we say in my
> native Austria.
>
>
> Cheers from the sunny South of France,
>
> Niki Kovacs
>
> --
> Microlinux - Solutions informatiques 100% Linux et logiciels libres
> 7, place de l'église - 30730 Montpezat
> Web  : http://www.microlinux.fr
> Mail :

Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-19 Thread Niki Kovacs
OK, I managed to go further in my default configuration. I edited a 
series of small files in /etc/skel/.kde/share/config to alter KDE's 
default configuration.


emaildefaults:

[Defaults]
Profile=Default

[PROFILE_Default]
EmailClient[$e]=thunderbird


kcminputrc:

[Mouse]
cursorTheme=whiteglass


kdeglobals:

[KDE]
SingleClick=false

[General]
BrowserApplication[$e]=mozilla-firefox.desktop
EmailClient[$e]=thunderbird


kickoffrc:

[Favorites]
FavoriteURLs=/usr/share/applications/mozilla-firefox.desktop,/usr/share/applications/mozilla-thunderbird.desktop,/opt/openoffice4/share/xdg/startcenter.desktop,/usr/share/applications/audacious.desktop,/usr/share/applications/kde4/dolphin.desktop


kwinrc:

[Compositing]
Enabled=false


nepomukserverrc:

[Basic Settings]
Start Nepomuk=false

[Service-nepomukfileindexer]
autostart=false


Everything works now as expected (again, after lots of trial & error). 
Which means I only have one last thing to configure, and I don't know 
how to figure that out:


How can I have widgets default to locked? Users *can* unlock them 
afterwards eventually, though I'd like to know how I can theoretically 
lock everything down for good.


Cheers,

Niki


--
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-19 Thread Niki Kovacs

Le 18/08/2013 15:06, Kevin Krammer a écrit :

I think in case of Plasma the only viable approach is scripting.


Hi again,

I did a lot of experimenting yesterday evening and this morning. So far 
I have a quite usable default configuration. Here's my 00-defaultLayout.js:


loadTemplate("org.kde.plasma-desktop.defaultPanel")

for (var i = 0; i < screenCount; ++i) {
var desktop = new Activity
desktop.name = i18n("Workstation")
desktop.screen = i
desktop.wallpaperPlugin = 'image'
desktop.wallpaperMode = 'SingleImage'
var wallpaper = "Ethais"
desktop.currentConfigGroup = new Array("Wallpaper", "image")
desktop.writeConfig("wallpaper", wallpaper)
desktop.writeConfig("userswallpaper", wallpaper)

//Create more panels for other screens
if (i > 0){
var panel = new Panel
panel.screen = i
panel.location = 'bottom'
panel.height = panels()[i].height = screenGeometry(0).height > 
1024 ? 35 : 27

var tasks = panel.addWidget("tasks")
tasks.writeConfig("showOnlyCurrentScreen", true);
}
}

And here's the corresponding layout.js:

var panel = new Panel
if (panelIds.length == 1) {
// we are the only panel, so set the location for the user
panel.location = 'bottom'
}

panel.height = screenGeometry(panel.screen).height > 1024 ? 70 : 54
panel.addWidget("launcher")
tasks = panel.addWidget("tasks")
panel.addWidget("systemtray")
panel.addWidget("digital-clock")
panel.addWidget("lockout")

tasks.currentConfigGroup = new Array("Launchers")
tasks.writeConfig("browser", "preferred://browser, , , ")
tasks.writeConfig("filemanager", "preferred://filemanager, , , ")

What I could manage so far:

* Have a bigger panel (some of the users complain about small icons)
* Don't show the activity button next to the Kickoff menu
* Define a more "corporate" default wallpaper (Ethais is perfect)
* Add a default shutdown button on the lower right side of the panel

I did this mainly by looking at other folks' mods on the web, and trying 
to figure out how I can adapt them for my own needs. I'm moving in very 
small steps, with a lot of trial and error.


Now here's some more things I'd like to do this way (e. g. by 
scripting), but I don't know how to go about it, in terms of mere 
syntax. I'll describe them in plain english:


* Add some custom launchers to the Kickoff menu ("Favoris").
* Deactivate all graphical effects. [1]
* Deactivate the semantic desktop and file indexation. [1]
* Change mouse cursor to Whiteglass theme
* Default to double click.
* Default the desktop to "Folder View" for ~/Desktop.
* Define Firefox as the default web browser.
* Define Thunderbird as the default mail client.
* Plasma widget are locked by default.
* Kiosk mode would be even better, e. g. most things are immutable.

[1] It's not that I don't like these. It's just that sometimes I have to 
install desktops on relatively low-spec hardware, and this is just to be 
on the safe side.


If you have one or more suggestions for any of the points above, I'd be 
grateful. For now, "I've reached the end of my latin", as we say in my 
native Austria.


Cheers from the sunny South of France,

Niki Kovacs
--
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-18 Thread Niki Kovacs

Le 18/08/2013 18:46, Nowardev-Team a écrit :

try plasma panels collections ,


Thanks, Nowardev! I've been experimenting for a few hours, and I've made 
quite some progress.


I'll keep you posted.

Cheers,

Niki Kovacs

--
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-18 Thread Nowardev-Team
try plasma panels collections ,
i have made some kate snippets to create plasma theme =>
http://www.youtube.com/watch?v=wAB1whqH9n8



http://kde-apps.org/content/show.php/Plasma+Panels+Collections?content=155726

i have even made my own settings and i have saved in this project
http://kde-apps.org/content/show.php/kde+Customization+kit?content=148430



2013/8/18 Niki Kovacs 

> Le 18/08/2013 15:06, Kevin Krammer a écrit :
>
>> I think in case of Plasma the only viable approach is scripting.
>> See [1] and [2]
>>
>
> Thanks for your suggestions. I've spent a couple more hours reading the
> Plasma Scripting Documentation and doing lots of trial and error. I have a
> partial success now. I could make some things work as expected, but some
> not.
>
> Here's what I could figure out so far (correct me if I'm wrong). BTW, on
> my Slackware 14.0 system, I deleted everything kde-related under /etc/skel,
> just to be on the safe side.
>
> Everything more or less happens under /usr/share/apps. When a new user is
> created, the script plasma-desktop/init/00-**defaultLayout.js is run.
> This script in its turn loads the layout.js file in
> plasma/layout-templates/org.**kde.plasma-desktop.**defaultPanel/contents.
> I played around a bit with these files, and succeeded in changing a few
> things, like the default panel size, and not displaying some launcher
> buttons I don't need.
>
> Here's what I have so far in layout.js:
>
> var panel = new Panel
> if (panelIds.length == 1) {
> // we are the only panel, so set the location for the user
> panel.location = 'bottom'
> }
>
> panel.height = screenGeometry(panel.screen).**height > 1024 ? 70 : 54
> panel.addWidget("launcher")
> tasks = panel.addWidget("tasks")
> panel.addWidget("systemtray")
> panel.addWidget("digital-**clock")
>
> tasks.currentConfigGroup = new Array("Launchers")
>
> Here's what I would like to have in my default profile:
>
> 1) Add a shutdown dialog button on the bottom right side of the panel,
> right next to the clock.
>
> 2) Define a default wallpaper (/usr/share/wallpapers/**microlinux.jpg).
>
> 3) Default the desktop to "Folder View".
>
> 4) Add a few quick launchers next to the Kickoff button for Dolphin,
> Firefox, Thunderbird and Open Office.
>
> Now I don't know how to translate this in the somehow weird scripting
> syntax.
>
> Any suggestions ?
>
> Cheers,
>
> Niki Kovacs
>
>
> --
> Microlinux - Solutions informatiques 100% Linux et logiciels libres
> 7, place de l'église - 30730 Montpezat
> Web  : http://www.microlinux.fr
> Mail : i...@microlinux.fr
> Tél. : 04 66 63 10 32
> __**_
> This message is from the kde mailing list.
> Account management:  
> https://mail.kde.org/mailman/**listinfo/kde
> .
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.
>
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-18 Thread Niki Kovacs

Le 18/08/2013 15:06, Kevin Krammer a écrit :

I think in case of Plasma the only viable approach is scripting.
See [1] and [2]


Thanks for your suggestions. I've spent a couple more hours reading the 
Plasma Scripting Documentation and doing lots of trial and error. I have 
a partial success now. I could make some things work as expected, but 
some not.


Here's what I could figure out so far (correct me if I'm wrong). BTW, on 
my Slackware 14.0 system, I deleted everything kde-related under 
/etc/skel, just to be on the safe side.


Everything more or less happens under /usr/share/apps. When a new user 
is created, the script plasma-desktop/init/00-defaultLayout.js is run. 
This script in its turn loads the layout.js file in 
plasma/layout-templates/org.kde.plasma-desktop.defaultPanel/contents. I 
played around a bit with these files, and succeeded in changing a few 
things, like the default panel size, and not displaying some launcher 
buttons I don't need.


Here's what I have so far in layout.js:

var panel = new Panel
if (panelIds.length == 1) {
// we are the only panel, so set the location for the user
panel.location = 'bottom'
}

panel.height = screenGeometry(panel.screen).height > 1024 ? 70 : 54
panel.addWidget("launcher")
tasks = panel.addWidget("tasks")
panel.addWidget("systemtray")
panel.addWidget("digital-clock")

tasks.currentConfigGroup = new Array("Launchers")

Here's what I would like to have in my default profile:

1) Add a shutdown dialog button on the bottom right side of the panel, 
right next to the clock.


2) Define a default wallpaper (/usr/share/wallpapers/microlinux.jpg).

3) Default the desktop to "Folder View".

4) Add a few quick launchers next to the Kickoff button for Dolphin, 
Firefox, Thunderbird and Open Office.


Now I don't know how to translate this in the somehow weird scripting 
syntax.


Any suggestions ?

Cheers,

Niki Kovacs

--
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-18 Thread Kevin Krammer
Hi,

On Sunday, 2013-08-18, Niki Kovacs wrote:
> Hi,
> 
> Since this my first post on this list, allow me to introduce myself. I'm
> running a small IT company in South France, based 100% on GNU/Linux and
> FOSS. I'm mainly working with schools, public libraries, local town
> halls and small companies.

Very cool!

> Creating a custom profile for a desktop environment like Xfce is dead
> simple. All you have to do is create a template user, configure the
> desktop, then copy all of /home/template/.config to /etc/skel (make a
> package eventually), and that's it. With KDE, things are more
> complicated, as it seems.
> 
> Application settings are stored in ~/.kde/share/config, in a series of
> files. Now of course I could grab all these files and copy them over to
> /etc/skel. Here's a summary of the problems that arise.
> 
> Some configuration defaults in plasma-desktop-appletsrc, for example,
> use hardcoded geometry, like this:

I think in case of Plasma the only viable approach is scripting.
See [1] and [2]

> Some configuration details seem to hardcode the user, like here for
> example:
> 
> [Containments][1][Applets][27][Configuration]
> Url=file:///home/kikinovak

You can probably make that depend on an environment variable instead
Url[$e]=file:///$HOME

> When I configure Thunderbird as a default mail client, this gets
> reflected in ~/.kde/share/config/emaildefaults, which looks like this:
> 
> [Defaults]
> Profile=Par défaut
> 
> [PROFILE_Par défaut]
> EmailClient[$e]=thunderbird
> ServerType=
> TerminalClient=false
> 
> Now my system is in french, hence the profile name. But my users are not
> all french, they also use english and german on their desktops.

Hmm, that is a tricky one.
One thing that might work is locale specific keys

[Defaults]
Profile[fr]=Par défaut
Profile[de]=Standardeinstellung

[PROFILE_Par défaut]
EmailClient[$e]=thunderbird
ServerType=
TerminalClient=false

[PROFILE_Standardeinstellung]
EmailClient[$e]=thunderbird
ServerType=
TerminalClient=false

> I've been googling the best part of a sunday morning, and I found quite
> some information. Even a KDE administration guide, which I read from
> first to last page:
> 
> http://techbase.kde.org/KDE_System_Administration
> 
> Unfortunately the information contained in this document is somewhere
> between puzzling and outdated. For example, it mentions Kiosktool, which
> looks like a nifty tool, only it's nowhere to be found in the download
> section of kde.org.

Yeah, unfortunately we "lost" its maintainer at some point and nobody has 
stepped up so far.
The Kiosk Framework still works though it part of KDE's configuration handling 
framework KConfig.

> I'm a little bit stuck on this one, and I'd be grateful for any help
> and/or suggestion.
> 
> Cheers from the sunny South of France,

Btw, the French KDE community is quite active, especially in the south of 
France. I think there is even a regular meetup in Toulouse once a month or so.

Cheers,
Kevin

[1] http://techbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting
[2] http://aseigo.blogspot.co.at/2009/09/scripting-plasma-desktop.html

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[kde] Introduction + create a custom user profile for KDE 4.10.5

2013-08-18 Thread Niki Kovacs

Hi,

Since this my first post on this list, allow me to introduce myself. I'm 
running a small IT company in South France, based 100% on GNU/Linux and 
FOSS. I'm mainly working with schools, public libraries, local town 
halls and small companies.


Until recently, I've been using exclusively a highly modified Xfce 
desktop for the job. Only recently have I played around with KDE 4.10.5 
(custom-built on Slackware 14.0 => 
http://www.microlinux.fr/slackware/MLWS-14.0-source/), and I liked it so 
much I decided to install it on my main workhorse PC and to install it 
to some customers.


Everything works perfectly so far. Now I have only one last detail to 
figure out, but it seems it's a tough one. Creating a custom user 
profile, e. g. the desktop's default configuration when a user is created.


Compared to the vanilla KDE configuration, the custom user profile I 
created for a template user includes a few sensible defaults. Here's 
what I got so far to make KDE4 more Joe-Sixpack-friendly:


* Increase kicker panel height.
* Replace default quickstart buttons on the kicker panel by a handful of 
custom ones for Firefox, Thunderbird and Open Office.

* Add these same applications to Favorites in the Kickoff menu.
* Add a shutdown button to the lower right side of the kicker.
* Deactivate graphic effects (for low-spec hardware).
* Deactivate semantic desktop and file indexation (for low-spec hardware).
* Change mouse cursor theme and enable double-click.
* Define Firefox and Thunderbird as default web browser and mail client.
* Change desktop default to "Folder View" with ~/Desktop as default folder.
* Choose a more "corporate" and neutral wallpaper.
* Etc.

Creating a custom profile for a desktop environment like Xfce is dead 
simple. All you have to do is create a template user, configure the 
desktop, then copy all of /home/template/.config to /etc/skel (make a 
package eventually), and that's it. With KDE, things are more 
complicated, as it seems.


Application settings are stored in ~/.kde/share/config, in a series of 
files. Now of course I could grab all these files and copy them over to 
/etc/skel. Here's a summary of the problems that arise.


Some configuration defaults in plasma-desktop-appletsrc, for example, 
use hardcoded geometry, like this:


[Containments][1]
activity=
activityId=
desktop=-1
formfactor=2
geometry=0,-40,1280,34
immutability=1
lastDesktop=-1
lastScreen=0
location=4
plugin=panel
screen=0
zvalue=0

This is on a PC with a 19" screen, with 1280x1024 resolution. Now if I 
package this profile and move it to another computer with a different 
(smaller or bigger) resolution, the new user's default panel will be 
either too wide or too small. Hm.


Some configuration details seem to hardcode the user, like here for example:

[Containments][1][Applets][27][Configuration]
Url=file:///home/kikinovak

When I configure Thunderbird as a default mail client, this gets 
reflected in ~/.kde/share/config/emaildefaults, which looks like this:


[Defaults]
Profile=Par défaut

[PROFILE_Par défaut]
EmailClient[$e]=thunderbird
ServerType=
TerminalClient=false

Now my system is in french, hence the profile name. But my users are not 
all french, they also use english and german on their desktops.


I've been googling the best part of a sunday morning, and I found quite 
some information. Even a KDE administration guide, which I read from 
first to last page:


http://techbase.kde.org/KDE_System_Administration

Unfortunately the information contained in this document is somewhere 
between puzzling and outdated. For example, it mentions Kiosktool, which 
looks like a nifty tool, only it's nowhere to be found in the download 
section of kde.org.


I'm a little bit stuck on this one, and I'd be grateful for any help 
and/or suggestion.


Cheers from the sunny South of France,

Niki


--
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.