On Sat, Oct 22, 2011 at 12:23 PM, Sebastian Wiesner <lunary...@googlemail.com> wrote: > 2011/10/22 anatoly techtonik <techto...@gmail.com>: >> On Fri, Oct 21, 2011 at 7:42 PM, Hugo Parente Lima >> <hugo.l...@openbossa.org> wrote: >>> On Friday 21 October 2011 14:45:51 anatoly techtonik wrote: >>>> Thanks for the prompt replies. >>>> >>>> QMainWindow.setWindowTitle() doesn't help. If you take a look at `sdi` >>>> application code, it already sets it: >>>> https://github.com/PySide/Examples/blob/master/examples/mainwindows/sdi/sdi >>>> .py#L273 >>>> >>>> app.setApplicationName('whatevernameyouwant') >>>> this doesn't help either. >>>> >>>> >>>> Maybe there is something that should be done specifically for Fedora/Gnome >>>> 3? Can anybody confirm this behaviour on other platforms? >>> >>> It may get the name from the .desktop file. >> >> Thanks for all replies. >> First, let me confirm that argv[0] hack works, but it seems wrong to >> me. What if I will need an application path to restart it? >> >> So I did a search and found that Gnome 3 is 'application based', not >> 'window based' system. And if you can't set app name in .desktop >> class, you need to set the WM_CLASS X window property. It's all >> described here - http://live.gnome.org/GnomeShell/ApplicationBased >> >> Now that it is clear that Gnome 3 requires setting application name >> explicitly, the question is why setApplicationName() doesn't do this? >> Should I fill it as a PySide bug? > > If anything, it's a Qt bug. PySide merely wraps ".setApplicationName()".
Reported at https://bugreports.qt.nokia.com/browse/QTBUG-22274 -- anatoly t. _______________________________________________ PySide mailing list PySide@lists.pyside.org http://lists.pyside.org/listinfo/pyside