| 1   2     3   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted (https://talk.maemo.org/showthread.php?t=66086)

d-iivil 2010-11-23 21:52

Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
At least for me the following behaviour is reproducable:
- open some Qt application which has at least one QComboBox or some menus on top bar to tap to
- run "killall hildon-desktop" or "dsmetool -k /usr/bin/hildon-desktop; dsmetool -t -U user /usr/bin/hildon-desktop"

Now try to get away without rebooting the device... only option is to killall the qt app(s) that were running in the background via SSH connection.

Is this a bug in Qt or is there another more "gentle" way to restart hildon-desktop than ones above?

Joorin 2010-11-24 06:30

Re: Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
Why do you want to restart the desktop process?

Wikiwide 2010-11-24 08:02

Re: Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
Quote:

Originally Posted by Joorin (Post 881803)
Why do you want to restart the desktop process?

To refresh the icons in Hildon launcher menu?
For me it's usual behavior.

d-iivil 2010-11-24 08:43

Re: Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
Quote:

Originally Posted by Wikiwide (Post 881847)
To refresh the icons in Hildon launcher menu?
For me it's usual behavior.

Actually to refresh about everything (this is actually Theme Customizer related question) without having to reboot the device. Built-in theme choosen app (personalisation_app) seems to do this without actually restartin the hildon-desktop. If I only knew what that closed source app is doing when applying new theme I would be very happy.

Joorin 2010-11-24 20:04

Re: Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
Quote:

Originally Posted by d-iivil (Post 881871)
Actually to refresh about everything (this is actually Theme Customizer related question) without having to reboot the device. Built-in theme choosen app (personalisation_app) seems to do this without actually restartin the hildon-desktop. If I only knew what that closed source app is doing when applying new theme I would be very happy.

So, in reality, you want to mimic, or replicate, the behaviour of another application?

Since dbus is used for many things, I'd suggest that you listen in on it while the other application "does its magic" to see what's happening. If you're lucky, it's a simple command that is sent that you then can implement in your own application.

If some other communication is used, you'll have to get more creative and that's perhaps too big a scope.

lunat 2010-11-24 20:22

Re: Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
quickshot: killall -g ?

Wikiwide 2010-11-24 20:25

Re: Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
Personalization_app doesn't ideally switch between themes, after it you can see some relics of old theme.

d-iivil 2010-11-25 06:04

Re: Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
Quote:

Originally Posted by Wikiwide (Post 882358)
Personalization_app doesn't ideally switch between themes, after it you can see some relics of old theme.

Yeah, I know that. I'd only like to see how it reloads the icons on the application launcher menu. Rest is pretty trivial to do.

And I still think it's a Qt bug. Gtk+ apps can handle the shutdown + startup of hildon-desktop without issues.

d-iivil 2010-11-25 06:07

Re: Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
Quote:

Originally Posted by Joorin (Post 882346)
So, in reality, you want to mimic, or replicate, the behaviour of another application?

Since dbus is used for many things, I'd suggest that you listen in on it while the other application "does its magic" to see what's happening. If you're lucky, it's a simple command that is sent that you then can implement in your own application.

If some other communication is used, you'll have to get more creative and that's perhaps too big a scope.

I don't want to replicate the behaviour, but it would indeed be nice to know how the personalisation_app is doing the things.

I already tried scanning the DBus and there's no (extra) activity there.

Diph 2010-11-25 07:15

Re: Bug in Qt (?), Qt apps freks out if hildon-desktop is restarted
 
What does the hildon-desktop theme option do?

hildon-desktop -theme theme : Load the specified theme


| 1   2     3   | Next
All times are GMT. The time now is 12:21.

vBulletin® Version 3.8.8