[03:43] <coolstar-pc> How do I prevent Unity from trying to put my app's menu at the top of the screen, as it fails, and my app is almost useless without that menu.
[05:22] <jo-erlend> coolstar-pc, why does it fail?
[05:23] <jo-erlend> but you can provide an environment variable when launching the application in order to deactivate global menu. I don't remember exactly what it's called, though.
[05:27] <jo-erlend> coolstar-pc, UBUNTU_MENUPROXY=0 command. For instance, "UBUNTU_MENUPROXY=0 gcalctool" will run the calculator without integrating its menu with the top panel.
[05:46] <coolstar-pc> jo-erlend: Is there a way to have it in the python code?
[05:46] <jo-erlend> you could set that variable from your main method, for instance.
[05:46] <jo-erlend> or, at least I think so. I'm not entirely sure, actually.
[05:51] <jo-erlend> it probably only affects subprocesses, so it's possible that your main code would have to set the environment variable using something like os.putenv("UBUNTU_MENUPROXY", "0"), then run your application as a subprocess and exit.
[05:52] <coolstar-pc> ok. I'll try that
[05:54] <jo-erlend> but if there's a problem with how the menubar works with your application, then I would recommend that you investigate what's causing it. Perhaps you're doing something wrong in your app, or that there's a bug in the menubar implementation? In both cases, you should try to fix the problem instead of avoiding it.
[05:55] <coolstar-pc> jo-erlend: It might be because i'm putting the menubar in an icon at the right of the toolbar (like chrome), and Unity is trying to put it at the top
[06:02] <jo-erlend> ok... Then my suggestion would be that if UBUNTU_MENUPROXY is "0" or not set, then you show that icon. Otherwise, you let Ubuntu use its global menu. It is a bad idea to design your application to break with its environment.
[06:04] <coolstar-pc> jo-erlend: I developed my App in Ubuntu 10.10, and I saw that when running in Unity, the app doesn't show the menu icon, but in KDE or XFCE it shows.
[06:04] <coolstar-pc> It works fine in Ubuntu 10.10
[06:04] <jo-erlend> the _icon_ is hidden?
[06:04] <coolstar-pc> Unity tries to move the icon to the top apparently, and fails
[06:04] <jo-erlend> uh..
[06:05] <jo-erlend> it sounds to me like you're doing something wrong.
[07:25] <umpirsky> Hi developers. I have problem adding appindicator to my PyGTK app. When I place this https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Python_version into my __init__.py, before gtk.main(), it works, but when I put it in my main window finish_initializing() method, it does not get showed.
[07:26] <umpirsky> If you look at http://bazaar.launchpad.net/~quickly-committers/quickly/trunk/view/head:/data/templates/ubuntu-application/project_root/python_lib/Window.py#L72 they suggest to put it in indicator.py
[07:26] <umpirsky> I don't have idea how that file should look like.
[07:27] <umpirsky> And why it works only in __init__.py
[09:29] <umpirsky> Hi. Can someone point me to some website/blog/wiki where I can read what are the best practices for creating theme dependent appindicator icons? I found nothing on https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators and https://wiki.ubuntu.com/CustomStatusMenuDesignGuidelines.
[09:30] <umpirsky> Basicly I'm lost. I' not sure what icons I can rely on, and if I create my own, how should they look and how to determine active theme e.t.c.
[09:32] <umpirsky> It says "
[09:33] <umpirsky> It says "Themable panel icons – you can set a specific icon to be a panel icon for an indicator: this should make it easier for creating single colour panel icons for light and dark themes." but it does not say how to do it?