Unity launcher doesn't work well with Python Pygame apps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BAMF |
Invalid
|
Undecided
|
Marco Trevisan (Treviño) | ||
Pygame |
Unknown
|
Unknown
|
|||
Unity |
Fix Released
|
Undecided
|
Marco Trevisan (Treviño) | ||
libsdl |
Fix Released
|
Medium
|
|||
unity-2d |
Fix Released
|
Undecided
|
Marco Trevisan (Treviño) | ||
bamf (Ubuntu) |
Invalid
|
Undecided
|
Marco Trevisan (Treviño) | ||
libsdl1.2 (Ubuntu) |
Fix Released
|
Undecided
|
Marco Trevisan (Treviño) | ||
pygame (Ubuntu) |
Fix Released
|
Undecided
|
Marco Trevisan (Treviño) | ||
unity (Ubuntu) |
Fix Released
|
Undecided
|
Marco Trevisan (Treviño) |
Bug Description
Binary package hint: unity
When I launch an application written in Python with Pygame modules (python-pygame), an icon labeled "Python (v2.7)" appears in Unity launcher instead of an icon of launched application. When I put application to launcher and run application again using icon from the launcher, a window of Gnome Terminal with Python interpreter is launched.
I test this with my own Pygame application (https:/
I believe that Unity itself should take care about this matter. Another possibility could be modification of Pygame apps. But I don't know how.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.8.12-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelMo
Architecture: i386
CompizPlugins: [core,bailer,
Date: Wed May 4 21:51:12 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
LANGUAGE=cs_CZ:en
LANG=cs_CZ.UTF-8
SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: Upgraded to natty on 2011-04-28 (5 days ago)
Related branches
- Martin Pitt: Approve
-
Diff: 75 lines (+54/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/321_x11_add_support_to__NET_WM_PID.diff (+46/-0)
debian/patches/series (+1/-0)
- Martin Pitt: Approve
-
Diff: 44 lines (+24/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/series (+1/-0)
debian/patches/set_the_SDL_WM_CLASS_when_running_under_X11.diff (+15/-0)
summary: |
- Unity launcher doesn't work well with Pygame apps + Unity launcher doesn't work well with Python Pygame apps |
Changed in pygame: | |
status: | New → Confirmed |
Changed in bamf: | |
status: | New → Opinion |
Changed in pygame: | |
assignee: | Treviño (Marco Trevisan) (3v1n0) → nobody |
importance: | Undecided → Unknown |
status: | In Progress → Unknown |
Changed in libsdl1.2 (Ubuntu): | |
assignee: | nobody → Treviño (Marco Trevisan) (3v1n0) |
Changed in bamf: | |
status: | Opinion → Invalid |
assignee: | nobody → Treviño (Marco Trevisan) (3v1n0) |
Changed in unity: | |
assignee: | nobody → Treviño (Marco Trevisan) (3v1n0) |
Changed in unity-2d: | |
assignee: | nobody → Treviño (Marco Trevisan) (3v1n0) |
Changed in bamf (Ubuntu): | |
assignee: | nobody → Treviño (Marco Trevisan) (3v1n0) |
Changed in unity-2d: | |
status: | New → In Progress |
Changed in unity: | |
status: | New → In Progress |
Changed in libsdl1.2 (Ubuntu): | |
status: | New → In Progress |
Changed in unity (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Treviño (Marco Trevisan) (3v1n0) |
Changed in bamf (Ubuntu): | |
status: | New → Invalid |
Changed in pygame (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Treviño (Marco Trevisan) (3v1n0) |
Changed in unity (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in unity-2d: | |
status: | In Progress → Fix Released |
Changed in unity: | |
status: | In Progress → Fix Released |
Changed in libsdl: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
The main problem here is that a pygame window doesn't set any window atom value for "_NET_WM_PID", so for libwnck it's impossible to find the PID related to the opened window, and so the launched command that would make BAMF associate the application with the proper .desktop file.
So I think that this is not a BAMF problem at all, but you need to set this value to make your application being recognized properly or (better) to fix pygame to make it set more informations related to a new window that it creates.