← Back to team overview

unity-dev team mailing list archive

Re: [Ayatana-dev] Debugging Unity-2d QML

 

> On the other hand, if I try and run unity-2d-spread from qt creator it
doesn't start properly, and doesn't log anything in the Application Output
pane to explain why either. I had assumed this was because it wasn't running
as root.

I normally run all the unity-2d-* applications from qtcreator in debug or non debug mode without trouble. What do you mean that "it doesn't start properly" ? There's no process launched or the process is there but you see no output ? Or something else ?

Second, you don't need launcher and panel to be started by the session,
if all you need is to debug them.
What you can do is to change the
/usr/share/applications/unity-2d-launcher and change the line with the
name of the executable to something that doesn't exist (to prevent the
session from starting it).
Then log out of your session and log in again. Press ctrl+alt+t to start
a new terminal and launch qtcreator from there, then start your launcher
under a debugger.
Yes, I assume you mean /usr/share/applications/unity-2d-launcher.desktop
above. I've got the various binaries that are normally exec'd by the .desktop
files replaced with custom shell scripts and that is working well. I can also
try your suggestion of making the .desktop files try to run a non-existent
binary.

Olivier's solution in this thread is probably cleaner. I would follow that one.

Cheers,
--
Ugo



Follow ups

References