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

Kde Tooltips

Tags: None
(comma "," separated)
rexcze
Registered Member
Posts
4
Karma
0

Kde Tooltips

Fri Mar 02, 2012 10:55 am
Hello,
I've created custom plasma-desktop layout in
/usr/share/apps/plasma-desktop/init/00-defaultLayout.js

which contains this:
Code: Select all
loadTemplate("org.kde.plasma-desktop.defaultPanel")

for (var i = 0; i < screenCount; ++i) {
    var desktop = new Activity("folderview")
    desktop.name = i18n(".")
    desktop.screen = i
    desktop.wallpaperPlugin = 'image'
    desktop.wallpaperMode = 'SingleImage'

    desktop.writeConfig("alignToGrid","true");
    desktop.writeConfig("blankLabel","false");
    desktop.writeConfig("url","desktop:/");

    //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 I would like to ask you how to disable tooltips. I found it is in file with this:

Code: Select all
[PlasmaToolTips]
Delay=-1


But I want it in javascript :-) Do anybody know?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Kde Tooltips

Sat Mar 03, 2012 4:14 am
Unless you have access to configuration files - this will not be possible. You could ship a default configuration file, or a shell script which uses kwriteconfig instead however.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
rexcze
Registered Member
Posts
4
Karma
0

Re: Kde Tooltips

Sat Mar 03, 2012 8:14 am
Ok, I put file with
Code: Select all
[PlasmaToolTips]
Delay=-1


to /usr/share/config/ and Iam the only user who have this sets. Other users have tooltips enabled. Thats weird.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Kde Tooltips

Sun Mar 04, 2012 7:59 am
The KDE Global configuration location varies depending on distributions unfortunately.
Whilst /usr/share/config is the default upstream KDE location, many distributions change this.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
rexcze
Registered Member
Posts
4
Karma
0

Re: Kde Tooltips

Sun Mar 04, 2012 9:32 am
My distribution uses default KDE location. As I said, it works for my user, but not for others :-D
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Kde Tooltips

Sun Mar 04, 2012 8:15 pm
You may wish to try /etc/skel/ in that case then.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]