← Back to team overview

unity-dev team mailing list archive

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

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Dale a écrit :
>> 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.

Another option is to change the value of the X-GNOME-AutoRestart key in
this desktop file to 'false', log out and log back in, and killall
unity-2d-launcher.
gnome-session won’t try to relaunch it, and you can then launch your
locally compiled launcher. The same applies to the panel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJNoyN9AAoJENMo1yMYrObHRtoH/2ef/ZgazmPe9kZG5g6EYZZr
Gw71XLbPS9TI9PbhwyqhhYqUO+yGAVgcO/dpCWjtyAmgIVrJVqncd2f7vM0u3JaB
AxnfZJxdjACq7Bq2TNS9LP0/Lv0Aw/RCj8mDj8C6xw/AtueZ8WDmoOInDiHsu4TZ
BzbafLrqSc8UT5OqpBmleN1POD7Bx9ZkkabMe9F0JTo3lXSocqPbJbknTBdBxdyE
SwKXTKOHYDjOOtKk0QAffcmysVqF0IPxHYTHlUBl8luW6RFHPxh4yCb1Zpl8ggPL
UZ+n+911MDOt+pcZIF9I2cNLRQV6OpFDMPwTZihCASQ0YJknMo13X5cnViybLzc=
=g3M4
-----END PGP SIGNATURE-----



References