desktop console on plasma shell


the new command for plasma shell:

qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveConsole

the old command for plasma desktop :

qdbus org.kde.plasma-desktop /MainApplication showInteractiveConsole

/opt/project-neon5/share/plasma/shells/org.kde.plasma.desktop/contents/layout.js

and of course API ARE BROKEN …. HERE THERE IS AN EXAMPLE …. -.-‘

    var panel = new Panel
    panel.screen = 0
    panel.location = 'bottom'
     
    var kickoff = panel.addWidget("org.kde.plasma.kickoff")
    kickoff.currentConfigGroup = ["Shortcuts"]
    kickoff.writeConfig("global", "Alt+F1")
     
    panel.addWidget("org.kde.plasma.pager")
    panel.addWidget("org.kde.plasma.taskmanager")
    panel.addWidget("org.kde.plasma.systemtray")
    panel.addWidget("org.kde.plasma.digitalclock")
     
    for (var i = 0; i < screenCount; ++i) {
        var id = createActivity("sticaz");
        var desktopsArray = desktopsForActivity(id);
        print(desktopsArray.length);
        for( var j = 0; j < desktopsArray.length; j++) {
            desktopsArray[j].wallpaperPlugin = 'org.kde.image';
            //var clock = desktopsArray[j].addWidget("org.kde.plasma.analogclock");
        }
    }
    

4 Responses to desktop console on plasma shell

  1. Sys says:

    Mmm… in Kubuntu 14.04, with KDE 4.13.2:
    $ qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveConsole
    Service ‘org.kde.plasmashell’ does not exist.

    Perhaps some information should be added🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: