Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

To test the interface, save the followig to unity.cpp

----------------8<------------------

#include <QtDBus/QtDBus>
#include <QtCore/QtCore>

int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "REGISTER:" << QDBusConnection::sessionBus().registerService("org.kde.test");
QDBusMessage msg=QDBusMessage::createSignal("/Wibble", "com.canonical.Unity.LauncherEntry", "Update");
QList<QVariant> msgArgs;
QMap<QString, QVariant> props;
props["count-visible"]=true;
props["count"]=(unsigned int)22;
msgArgs.append("application://firefox.desktop");
msgArgs.append(props);
msg.setArguments(msgArgs);
qDebug() << "SEND:" << QDBusConnection::sessionBus().send(msg);
return a.exec();
}

----------------8<------------------

Compile with: g++ unity.cpp -o unity -lQtDBus -lQtCore -I/usr/include/qt4

(You may need to change /usr/include/qt4 to wherever your Qt4 includes are, the above is for Kubuntu)

With firefox already started, just run from a command line: ./unity

This should place a badge with "22" on top of the firefox icon.

You can then stop the app by CTRL-C in the konsole window. - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

What is the .desktop file of you firefox install called? Unity associates apps to launcher/taskbar entries via the desktop file name. The unityfox add-on expects firefox to be called 'firefox.desktop' - anything else will not work.

To see which .desktop files IconTasks has linked your apps to, enable the DockManager support in IconTasks config. Then in a konsole window type (all one line):

for iface in `qdbus net.launchpad.DockManager | grep /net/launchpad/DockManager/Item` ; do qdbus net.launchpad.DockManager $iface DesktopFile; done

(You can now disable the DockManager support if you no longer need it)

You should see firefox.desktop, if not then that is where the error lies. - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

You could try this...

I dont know mpDris, so I'm gueesing here, but lets assume:

1. DBUS service name = org.mpris.MediaPlayer2.mpDris
2. The desktop file of QMPDClient is qmpdclient.desktop

Edit /usr/share/kde4/apps/plasma-icontasks/mediabuttonsrc (or ~/.kde/share/apps/plasma-icontasks/mediabuttonsrc), in the Alias section, add:

qmpdclient=mpDris


This will then link the app/launcher whose desktop file is qmpdclient.desktop to the MPRIS DBUS service org.mpris.MediaPlayer2.mpDris

Let me know if this works, if so I'll add it to IconTasks' mediabuttonsrc - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

You need dbus-menu-qt dev package installed - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

You may need to manually run 'kbuildsycoca4' from a konsole window - so that the system configuration cache is updated. If you have installed IconTasks properly, it should appear in the add widget menu. - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

1. Not sure about this. The original taskbar, and plasma-themed IconTasks, blinks, then the highlight stays on. The indicator style mimics this, but when the blinking ends the indicator is drawn blue. The opacity of the blue indicator icon is a bit too transparent, so I've modified this for 0.6.2. But I don't like the idea of constant blinking.

2. At the moment, the indicator size is either 12pixels, or 1/2 the task height (for vertical panels) - whichever is smaller. This could be changed to be either a 1/3 or 1/4 - not sure which. But it wont be the same size as the system tray arrow - as the sizing requirements are different.

If you really dont like the sizing, you could always create a custom indicators.svgz in ~/.kde/share/apps/desktoptheme/default/icontasks/ If you added a transparent border, this would make the indicators smaller. - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

As for the first two bugs, the present windows effect seems to be broken for these scenarios. I tried by using the kwin keyboard short-cuts, and had the same behavior. Not sure what IconTasks can do about this, kwin should be fixed. I could add an option to *not* use the present windows effect. This is what I'll probably fo for 0.7.0 - new Group click option; "Minimize/maximize", "Menu", or "Present Windows"

As for the last, I don't use Activities - but I've just performed a quick check, and this all /appears/ to be working fine. Which version of KDE are you using? Anyway, please contact me via email (address is in AUTHORS file) so that I can ask you to enable some debugging that might help me to fix the issue. - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

OK, I've had a look, and this looks fairly easy to do. So I'll try and add this to v0.7.0 - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

You need to install libunity - which I think is only currently packaged for Ubuntu. Then any unity enabled apps will automatically work. For firefox download progress, etc, you also need to install the "UnityFox" add-on. I think there is also something similar for chrome.

The difference between Unity and DockManager, is that the app itself needs to be updated for Unity. For DockManager support, a 3rd party can write a plugin the queries the apps DBUS api, and the app itself does not need to be changed. - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

I'll release a 0.6.2 later today with a new badge background. This will contain a light and dark variant. Dark will be used if the 'value' (i.e. brightness) is greater than 160.

I've tested this with Oxygen and Air, and it works for both :-) - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

The DockManager API is a DBUS API with python helper scripts that is shared between docky, avant-window-navigator, dockbarx, and now IconTasks.

For help in writing new helpers, see http://wiki.go-docky.com/index.php?title=Writing_Helpers

For a list of current DockManager plugins, see http://wiki.go-docky.com/index.php?title=List_of_helpers

If you are on Kubuntu, there should be some dockmanager helper scripts available in the package manager.

To run the scripts, you will need the dockmanager python libraries installed.

IconTasks does *not* use the dockmanager daemon to control when the scripts are launched. As this daemon uses GConf, and has a GTK config GUI that I could not manage to integrate nicely - I decided it'd be easier to have IconTasks itself control the scripts. Therefore, you have no need to install the daemon part of the package.

The following is a script that will change Amarok's taskbar icon to the cover-art of the currently playing track:

http://kde-look.org/content/show.php/?content=141002 - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Oops! Will remove for the next release, sorry! - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Integrating the recently used documents is an interesting idea. I'll add this to my TODO. However, I'm not sure how one would match up the entry in recently used with the desktop file of the application... - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

There needs to be an oxygen equivalent of badge.svgz. The current one is a copy of air's button svg, copying the button from oxygen should suffice. - Sep 26 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Try running kbuildsycoca4 from a command line, and restarting plasma - Sep 26 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

D'oh!!! Should be fixed now, sorry! - Sep 26 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Which particular effect? I've just tried with the present windows that happens when you click on a task group. With effects I had the effect, disabled and I had the popup menu, then re-enabled and I had the effect again. - Sep 25 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

If its possible to write a dock-mananger plugin for this, then you could do it now. But I dont think it currently is possible. (For help on writing a dock-manager plugin see http://wiki.go-docky.com/index.php?title=Writing_Helpers)

However, as of the next release (0.6.0), IconTasks will support the Unity API. This should give you the features you require.

- Sep 22 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

1. I'll add this to my ever-growing TODO. The current behaviour is as per the original taskbar.
2. I assume you mean text labels in the taskbar? No, this will not happen. This is an icon *only* taskbar.

p.s. Don't apologise for your English - its *much* better than my Russian! - Sep 21 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Because an app might not have a launcher. In this scenario there is no way to bring up the progress dialog - as the KDE job server thinks there is already a graphical item. Now I could create a fake 'job task' item in the taskbar, but its not worth the hassle.

With DockManager, and Unity (from 0.6.0), plugins also displaying progressbars - it would be odd that some can be controlled by the taskbar popup, and some not. - Sep 21 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Long winded explanation of what IconTasks is doing....

To control media players, IconTasks uses the MPRIS dbus API. Each media player has a unique DBUS MPRIS service name - org.mpris.MediaPlayer2.NAME (where NAME is amarok for Amarok)

IconTasks needs to map from a launcher to a MPRIS service - in order to know which tooltip to display the controls in!


First of all, IconTasks needs to be informed when an MPRIS service is started. An easy way would be for IconTasks to be informed when *any* DBUS service is started, and check that the name starts with "org.mpris.MediaPlayer2" - but this would mean IconTasks being woken up *very* frequently. So, to save CPU/battery, IconTasks attempts to determine the lsit of MPRIS services to be informed about.

To do this, it queries KDE's list of installed 'AudioVideo' applications. The result of this is a list of 'DesktopEntryName' keys. These keys are assumed to be the MPRI service extension. e.g. org.mpris.MediaPlayer2.$DesktopEntryName

---
As an aside, you can see the list of AudioVideo apps installed by running the following in a konsole window (all on one line):

ktraderclient --servicetype Application --constraint "exist Exec and (exist Categories and 'AudioVideo' ~subin Categories)" | grep DesktopEntryName
---

So, IconTasks will *only* ever be informed about those MPRIS services.

When an application is started, IconTasks then needs to match it to one of these MPRIS services. To do this, it assumes the desktop file name of the task's launcher is the same as the DesktopEntryName above.

e.g. for Amarok, we have:

MPRIS service: org.mpris.MediaPlayer2.amarok
DesktopEntryName: amarok
Launcher: /usr/share/applications/kde4/amarok.desktop

As these all match up, we can control the app. If any of these fail to match, the controls will not be present.


To help me fix *why* this is not working for you, please do the following:

1. In a konsole window, run the 'ktraderclient' command above.

2. Start the media player

3. In a konsole window, run the following (when the player has started):
qdbus | grep -i "org.mpris.MediaPlayer2"

4. Enable support for DockManager plugins in IconTasks config dialog

5. Again in a console window, type:
for iface in `qdbus net.launchpad.DockManager | grep /net/launchpad/DockManager/Item` ; do qdbus net.launchpad.DockManager $iface DesktopFile; done

5. You can now disable the DockManager support, if you no longer need it.


Then let me know that parts of steps 1, 3, and 5 that are relevant to the media player this is not working.

Its probable that I need some sort of mapping file to link everything together. But I only use Amarok, and for me it seems to work fine. - Sep 21 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Yes, this is controlled via the plasma theme. I am thinking of having an icon-tasks specific svg file that would contain arrows used to indicate current task, etc - sort of like how unity does this at the moment. - Sep 21 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Thanks! I'll add to the next release. Please feel free to send me future updates to my email address (which is in the AUTHORS file) - Sep 21 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Spanish translation would be "muy bueno" (if my spanish is correct)

Please contact me via email - my address is in the AUTHORS file. - Sep 21 2011
UFW KControl Module

System Software by CraigD 48 comments

Did you install this into the kde-prefix? What happens if you run:

/usr/lib/kde4/libexec/kcm_ufw_helper.py --status --defaults --list --modules - Sep 21 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

You are correct, its a bit broken at the moment! I'll add this to my TODO list - must admit I never use the scroll wheel over the taskbar. - Sep 19 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

On opensuse, install kdebase4-workspace-devel - that *should* pull in all other other dependencies. - Sep 16 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Do you have FindKDE4Internal.cmake installed on your system? This file should come as part of kdelibs4-dev

Can you compile any other KDE4 apps (with cmake)??? - Sep 16 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Do you get VLC in the regular taskbar? Is the icon missing for the launcher, or when the task is run?

I've just tried here, and VLCs icon shows up fine for both launcher and task. - Sep 16 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Sorry, I dont have KDE4.6 installed - so cant test. However, I think it *should* compile against KDE4.6. Are you sure you have *all* the required KDE devel packages installed? You will need kdelibs and kde-workspace at least. - Sep 16 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Thank you. Don't worry, I have no intention of stopping supporting it. I'm about 90% through adding support for the dockmanager api, then I also want to add support for mpris and unity apis. - Sep 15 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

The feature is controlled via the kwin plugin "Highlight Window" - Sep 15 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Any chance you could update the kmail script to work with kontact/kmail2? I've started to implement the dockmanager API, and I've got the amarok script working :-) - Sep 15 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Looks good. I'll have a look, and see if I can implement this. I had thought about copying the Unity stuff - but DockManager looks like a safer bet. - Sep 14 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

You mean middle-click. Anyway, I've added this to my TODO for 0.5.0 - Sep 13 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Ah, I see the error now. Looks as if because an applet is connected to the "applicationjobs" plasma dataengine, the progress dialogs are not displayed.

Hmmm... perhaps I should disable the task progress indicators unless the sys-tray entry is also enabled... - Sep 13 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

I thought about this - but the problem is that the taskbar will only show progresses for jobs associated with apps. If you start dolphin, start copying, then quit the dolphin window - no progress will be displayed on taskbar. So, you still need the system tray. Therefore, I left the actions there. - Sep 13 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Try this:

Edit taskmanager/groupmanager.cpp, at about line 512 (in function GroupManagerPrivate::currentDesktopChanged), change from

reloadTasks();

to:

actuallyReloadTasks();


Does this make things better? (If so, might need a similar 'fix' to GroupManagerPrivate::currentActivityChanged) - Sep 13 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

This is *all* controlled by the plasma theme. The only custom elements are the separator and progressbar - but both of these are SVGs that may be overridden. - Sep 13 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Yes. You need to recompile, install, then restart plasma. - Sep 12 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

D'oh!!!!! Think it's because I added two new screenshots, and kde-look keeps on taking you back to the start of the 'edit' process. Sorry, should be fixed now! - Sep 12 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

You are correct, the tooltip is pretty useless. This will be fixed in the next release, where it will basically be the same as the non-composited version - except that there will be no preview. - Sep 12 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Just the kde default - "air" - Sep 11 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Launcher icon comes from its desktop file. to change the icon, use kmenuedit and alter the entry. - Sep 09 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

That's because of the space required for the frame. not much I can do about that. - Sep 08 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Done. Will be in next release. - Sep 05 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

If you mean the kwin window borders, then no I dont think this can be done. If you mean the border that is drawn around the preview, I'll see what this looks like. - Sep 04 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

I've just noticed this with firefox, which is an an app that does not use the kde start up notifications. Also noticed that this happens in general when the taskbar start-up notifications are disabled.

Do you have these notifications disabled? Does the situation improve if you enable them?

I have done some work on this, and (hopefully) the issue should be resolved in v0.3.0 - Sep 02 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

With effects enabled, the present windows effect is used. Perhaps I need to check if this is enabled... - Sep 02 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Odd, I dont see this. Anyway, can you send me an email (my address is in the AUTHORS file), and I can send you a version with some debug? Thanks. - Sep 02 2011