Get proxy object for existing process - Filter by command line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
In Progress
|
Low
|
Unassigned |
Bug Description
When trying to create a proxy object based on an application name as follows:
get_proxy_
I get a few error messages like this:
ERROR:dbus.
and the call takes quite a while to complete. The reason, as discussed through e-mail, seems to be that autopilot queries through dbus a lot of connections and has to wait for some of them to time out.
On the other hand, something like looking for the process using psutil works much faster because there's no need to query so many connections:
gallery_process = next(p for p in psutil.
return get_proxy_
Hence, it would be nice to implement something like this in get_proxy_
Related branches
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Autopilot Hackers: Pending requested
-
Diff: 263 lines (+195/-1)2 files modifiedautopilot/introspection/__init__.py (+76/-1)
autopilot/tests/unit/test_introspection_features.py (+119/-0)
Changed in autopilot: | |
assignee: | nobody → Javier Collado (javier.collado) |
Changed in autopilot: | |
status: | New → Confirmed |
importance: | Undecided → Low |
status: | Confirmed → In Progress |
Changed in autopilot: | |
assignee: | Javier Collado (javier.collado) → nobody |