Friday, December 1, 2017

application development - unity components debugging

Following up on my question here, I would like to ask about best-practices for debugging additions to the unity components.


Integrating apps into unity requires many components: service files, desktop files, dbus clients, dbus servers, etc. With so many independent components involved, I have a bit trouble finding a good way to look for the problem when something is not working. But since many developers seem to be able to develop in this environment, there are probably tools / workflows that I'm missing.


As an example: quickly debug, which opens a python debugger does not help at all for lens development, unless the problem is directly in the code of the lens (which is easier found with simple unit tests). If the problem is in a service file, this does not help at all. I have had problems for example with whitespace in an application name in the .desktop file, which lead to a program not being listed in the sound menu (I think, maybe it was another menu...).


So: how are you debugging lenses, launchers, indicators, HUD methods... ?


Is there a tool to check the integrity of a .service file?


Is there a tool to check the integrity of a .desktop file?


Is there a tool to see if there are collision in .desktop/.service files? (e.g. several .service files supplying the same dbus service)


Is there a way to watch the communication between a specific lens in the dash and the supporting lens-service?


Can I test lenses without installing them?

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...