Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

As stated, you need to install the dockmanager python libraries. You do not need the dockmanager daemon - as IconTasks controls the starting/stopping of plugins.

The following is a script to set the amarok icon to the current track's cover art:

http://kde-look.org/content/show.php/Dockmanager+amarok+cover+script?content=141002 - Oct 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Just tried, no crashes for me. Tried both vertical and horizontal panels, 1 row, 2 rows, etc. No crash.

Do you have a backtrace? - Oct 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Grouping: Interesting idea, will think about it.

Window controls: I think this would crowd the tooltip too much. You can access the other controls via the right-click menu on the tooltip. (Just noticed that this also shows unity, etc. menus - which I will remove...) - Oct 24 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Yup, you need to update to the latest version - https://addons.mozilla.org/en-US/firefox/addon/unityfox/versions/

However, this also check that the DESKTOP_SESSION env var is set to ubuntu before it will work - why I dont know. Supposedly its to stop it trying to load libunity on non-unity systems, but why this matters I really dont know...

So, for now you need to set "DESKTOP_SESSION=ubuntu" before starting firefox. IconTasks 0.8.0 will do this automatically if unity support is enabled. - Oct 21 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Its possible that the Unity API has changed - I have not updated to 11.10. Or, it is possible that the .desktop filename of firefox is different. (Unity matches apps to taskbar items based upon the .desktop filename). To find out which .desktop files IconTasks has associated with your tasks, do the following:

1. Enable DockManager support, if not already enabled (this can be turned off afterwards)
2. In a konsole run:

for item in `qdbus org.kde.plasma-desktop | grep "/net/launchpad/DockManager/Item"` ; do
qdbus org.kde.plasma-desktop $item DesktopFile;
done

The UnityFox plugin will be looking for firefox.desktop or firefox-trunk.desktop. If one of these are present, then it could be that the API has changed. To see whats happening, you need to rebuild IconTasks with debug support.

1. mkdir build
2. cd build
3. cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DICON_ENABLE_DBUS_DBUG=true
4. make
5. sudo make install
6. stop firefox
7. kquitapp plasma-desktop
8. plasma-desktop
9. qdbus org.kde.plasma-desktop /IconTasks toggleDebug 8
10. start firefox
11. perform download, etc.

In the konsole window you should see debug such as:

void Unity::registerTask(AbstractTaskItem*) 0x8476310 "" "application://firefox.desktop"

...and

void UnityItem::update(QMap<QString, QVariant>, const QString&) 0x848c868 "" "application://firefox.desktop" QMap(("count", QVariant(uint, 2) ) ( "count-visible" , QVariant(bool, true) ) ( "progress" , QVariant(double, 0.75) ) ( "progress-visible" , QVariant(bool, true) ) )

Its this update line that I am interested in.


- Oct 19 2011
The fix, I think, is to edit shadowhelper.c and remove line 220 (the call to "qtcShadowReset();") - Oct 17 2011
...ok, looked further. is it always the *first* item to appear that does not have shadows? - Oct 17 2011
When you say "sometimes", which times? I've just noticed that the compact menu, and 'File' menu dont seem to get shadows. Anywhere else? I've no idea why this is happening...

This is why KDE 4.7 should implement fallback shadows for styles that dont want to implement their own. And is another reason why it took me so long to getting round to doing this. Each style implementing the *same* thing, and having to fix the *same* bugs, is just silly... - Oct 17 2011
D'oh!!!! Caused by a *stupid* mistake! In shadowhelper.c, at line 136 change from:

if(GTK_APP_OPEN_OFFICE!=qtSettings.app)

to

if(GTK_APP_OPEN_OFFICE==qtSettings.app)


Does this fix the issue for you??? I'll upload a fixed version later. Sorry :-(
- Oct 16 2011
Oh, wow! Just tried GIMP. That *is* broken! I'll try to fix this ASAP. Sorry. - Oct 16 2011
Because I think it looks amazing, love the buttons, gradients, etc. Its not perfect (I don't like the menu checkboxes, button contents don't move when pressed, etc.) ...and also, I don't have to fix the bugs :-) - Oct 16 2011
Nope, sorry. I don't use *any* gtk3 apps, and no longer actively use QtCurve - having switched to Oxygen.

However, this may change if/when I get the motivation. The code has been re-aranged to make a Gtk3 port easier - so if someone wants to start a port... - Oct 16 2011
At the moment, I'm only doing basic maintenance on QtCurve. I no longer use the style, having switched to Oxygen. But please feel free to submit patches. - Oct 16 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

The behaviour *is* the same as the current taskbar. If the app demands attention, it will get a blue border/indicator.

I've just tried with the standard taskbar, started a second konsole instance and no blue border was drawn. - Oct 15 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

So, which parts of the patch did you apply??? - Oct 14 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

OK, for the next update I've changed it so that the icon is not faded, but the indicator is. Its not perfect, but better than before. - Oct 14 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

The are *minimised* tasks. How else would I indicate that the task is minimised? Its 60% opaque to indicate that it is semi-active... - Oct 14 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

IconTasks is based off of KDE/master taskmanager, this already has the change of the signal connection. So, if you are still seeing the issue with IconTasks then this cannot be the fix.

The only other part of the the patch is the removal of the 'emit destroyed' from the destructor... - Oct 14 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Thanks! Will be in the next update. - Oct 11 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Thanks! I'll include this in the next update. - Oct 09 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

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

Plasma 4 Extensions by CraigD 642 comments

Thanks! Will be in the next release. - Oct 05 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

You could always create a dockmanager plugin to add menu items. These plugins are written in python, and can be activated even when the app is not running. This has the advantage that you do not need to edit the .desktop file. (For more info see http://wiki.go-docky.com/index.php?title=Writing_Helpers)

DockManager also does not seem to support adding a separator, but I'm willing to abuse the spec a little to add support for this, if it is required. (e.g. if the icon name is set to "--", then the menu item is a separator...)

- Oct 05 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

If you don't like dead space, set spacing to 0 (as is the default). I still see no need for rectangular tasks. - Oct 05 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

I know *what* you are asking for, I just don't see the *need*. Why do you want this? What advantage does a rectangular task item give you? - Oct 05 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Task items are square, unless the max width/height is met - then they will be tall (for horizontal panels) or wide (for vertical).

The spacing parameter changes the gap *between* items, and creates "dead" space. I'm not 100% convinced about its usefulness, or about what you are asking for (which would be adding "padding" to the sides of the task to make it wider/taller) - Oct 05 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

The .desktop files are used for *static* quicklists, and IconTasks has no support for separators there - not sure where they would go.

Unity's dynamic quick-lists are created whilst the app is running, and use DbusMenu - is this what you are looking for? - Oct 05 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

When you edited Amarok via KMenuEdit, KDE saved a new file named "kde4-amarok.desktop"

Now IconTasks matches an app to its MPRIS dbus service via the *desktop* filename. For Amarok this is amarok.desktop, which, matches org.mpris.MediaPlayer2.amarok

When you edited the file, a new one was created - now this no longer matches.

I should probably change the code so that it matches on the windows 'wmClass' attribute. But for now, simply edit either /usr/share/kde4/apps/plasma-icontasks/mediabuttonsrc or ~/.kde/share/apps/plasma-icontasks/mediabuttonsrc and either add (or change) it so that it contains the following:

[Aliases]
amarok=kde4-amarok

Then you need to disable, and re-enable IconTask's support for media buttons in its config dialog (pressing 'Apply' both times) - this is so that the config file is re-read.
- Oct 05 2011
Oxygen KDE (Firefox Theme)

Various KDE 1.-4. Improvements by jimmy88 1783 comments

Whilst the KDE colour scheme is used, it doesn't seem to be taking into account the contrast (or 'Shading') setting.

Anyway, still looks fantastic, so thanks!!! - Oct 04 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

This has been reported to me via email, and I'm working on a fix. Can you try editing taskgroupitem.cpp and change about line 381 from:

--------------8<-------------
void TaskGroupItem::checkUpdates()
{
bool needsUpdate = false;

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

to:

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

void TaskGroupItem::checkUpdates()
{
if(!m_group) return;

bool needsUpdate = false;

--------------8<------------- - Oct 04 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

What do you mean by "I like change icons from mi apps like amarok"

Just tried the media buttons with 0.7.1, and they seem to work fine under Amarok for me. - Oct 04 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

1. For 0.7.2 when icon scaling is not set to automatic, then the sizing will ignore the task margins. Therefore 100% will equal the full task rect.

2.I dont like the large app icons in the tooltips. The current tooltips do 'highlight' the close button of the task under the mouse. But I agree, a better way of indicating the task under the mouse would be good. - Oct 04 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

1. Cant really see a great deal of difference.

2. No. This might look ok with some icons, but will look awful with others (e.g. System Settings)

I'll play around with the background gradient, and possible the shine, and see what I think.

p.s. Please don’t apologise for your English, its 1000 times better than my German! - Oct 03 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Yeah, I can reproduce this. Will try to fix for 0.7.1 - Oct 03 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

First point - sorry, I don't understand. No idea about CSS stuff, so please provide a screenshot of whats wrong - and how it could be improved.

Second point - I could make the backgrounds a little lighter. Not sure what you mean by "highlighting on the top a little lower" The two apps look pretty similar. Also, the code is *different* between the - and I have *no* intention of making them the same. I'll admit that I obviously copied the idea... - Oct 03 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Yeah, sorry the MPRIS service name aliasing is broken in 0.7.0. I will fix for 0.7.1 - Oct 03 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

No. - Sep 29 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Just checked, and I see what you mean. When the applet is not in a panel it behaves oddly. Tried the standard taskbar, and got the same odd behaviour... - Sep 29 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Left clicking on a task *does* minimize/restore... - Sep 29 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

As above, I dont see this. can you contact me via email (address is in AUTHORS file) so I can suggest some debug to try? - Sep 28 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

I've tried with dolphin - no luck, works fine for me :-(

does it matter if you have any other apps open?

when you say 'select any other window' - do you mean by clicking on the taskbar, or just making another window active by clicking in it?

as I cant reproduce this, can you contact me via email (address is in AUTHORS file), so that I can suggest some steps to try and debug the issue? - Sep 28 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Can you easily reproduce this?? How many dolphin windows did you have open?? How did you close them?? One by one, or all at once??? - Sep 28 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Again, add the following to the top of task_x11.cpp:

#include <kdeversion.h>


then at about line 285 in task_x11.cpp, change from:

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

unsigned long properties[] = { 0, NET::WM2Activities };
NETWinInfo info(QX11Info::display(), d->win, QX11Info::appRootWindow(), properties, 2);
QString result(info.activities());
if (result.isEmpty() || result == "ALL") {
d->activities.clear();
} else {
d->activities = result.split(',');
}

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

to:

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

#if KDE_IS_VERSION(4, 6, 0)
unsigned long properties[] = { 0, NET::WM2Activities };
NETWinInfo info(QX11Info::display(), d->win, QX11Info::appRootWindow(), properties, 2);
QString result(info.activities());
if (result.isEmpty() || result == "ALL") {
d->activities.clear();
} else {
d->activities = result.split(',');
}
#endif

-------------------8<------------------------- - Sep 28 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

OK, for next release I have implemented support for MPRIS v1 spec. - Sep 28 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Try this... Add the folowing to the top of taskmanager.cpp:

#include <kdeversion.h>


...and at line 355 change from:

--------------8<-------------
if (!(dirty[NETWinInfo::PROTOCOLS] & (NET::WMVisibleName | NET::WMName |
NET::WMState | NET::WMIcon |
NET::XAWMState | NET::WMDesktop) ||
(trackGeometry() && dirty[NETWinInfo::PROTOCOLS] & NET::WMGeometry) ||
(dirty[NETWinInfo::PROTOCOLS2] & NET::WM2Activities))) {
return;
}
--------------8<-------------

to:

--------------8<-------------
#if KDE_IS_VERSION(4, 6, i0)
if (!(dirty[NETWinInfo::PROTOCOLS] & (NET::WMVisibleName | NET::WMName |
NET::WMState | NET::WMIcon |
NET::XAWMState | NET::WMDesktop) ||
(trackGeometry() && dirty[NETWinInfo::PROTOCOLS] & NET::WMGeometry) ||
(dirty[NETWinInfo::PROTOCOLS2] & NET::WM2Activities))) {
return;
}
#else
if (!(dirty[NETWinInfo::PROTOCOLS] & (NET::WMVisibleName | NET::WMName |
NET::WMState | NET::WMIcon |
NET::XAWMState | NET::WMDesktop) ||
(trackGeometry() && dirty[NETWinInfo::PROTOCOLS] & NET::WMGeometry))) {
return;
}
#endif
--------------8<-------------

Does this help? (Sorry for the missing formatting, kde-look removes the spaces!!) - Sep 28 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Looks like a rendering error from plasma. The plasma-theme borders are drawn using the same code as the original taskbar, and the drawing is done by libplasma - Sep 28 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Tab support - AFAIK, there is no way to obtain the list of firefox, etc, tabs.

The window previews are supplied by kwin, you would need to file a bug report against kwin asking for the borders to be removed.

Looks as if VLC is using MPRIS and not MPRIS2, IconTasks currently only supports MPRIS2. I'll add MPRIS(1) support to my TODO list. - Sep 28 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

But the code I pasted does not use libunity. It directly invokes IconTasks's fake unity DBUS interface. So, if the test code does not work, then libunity itself will not. Whats the output of "qdbus com.canonical.Unity" ???

Do you have dockbarx (which also supports unity), or unity itself running? - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Do you have unity support enabled in IconTasks? Have you restarted plasma-desktop to make sure you have the latest version running? - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

It might be better to continue this via email - my address is in the AUTHORS file. But.... Recompile IconTasks, this time when you call 'cmake' also pass it -DICON_ENABLE_DBUS_DBUG=true

No, from a command line start icontasks in the plasmoidviewer - use the following syntax:

ICON_ENABLE_DBUS_DBUG=16 plasmoidviewer icontasks

This will show only the mediabuttons debug output.

Do you see the following:

void MediaButtons::updateApps() 0x90a4f28 "" watch "org.mpris.MediaPlayer2.mpd"

?? If not what does the following command (all one line) return:

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