[Sugar-devel] Window handling for non-Python activities
Daniel Drake
dsd at laptop.org
Mon Feb 25 14:00:31 EST 2013
On Mon, Feb 25, 2013 at 11:46 AM, Daniel Narvaez <dwnarvaez at gmail.com> wrote:
> On 25 February 2013 18:22, Daniel Drake <dsd at laptop.org> wrote:
>> How can we solve this issue? Do we need to modify all of these activities?
>
> The way these activities are written seems sort of crazy but maybe I'm
> missing something. I'm not sure why they are using a python activity
> at all.
Feel free to invent a new approach! Or maybe you just did, below.
> Did you see my "Fallback to _NET_WM_PID to map windows to activities"
> patch? I sent it a while ago so I don't remember for sure, but it
> might be possible to make it work with child processes. If it's
> possible cleanly, I think it would be a good addition, it would make
> easier for people to write non python activities.
> Alternatively you could still use that patch, but modify the
> activities to pass the main executable to the activity.info directly.
> Or for a smaller change I suppose os.execv might also work (?).
I haven't tested it, but that seems like a good idea for the way forward.
Daniel
More information about the Sugar-devel
mailing list