From 520a7223f32e198bf8b633f524d52a04ac8e40ad Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 22 Oct 2008 10:44:29 +0000 Subject: Add a method for getting the bundle path of the currently active activity --- (limited to 'src') diff --git a/src/jarabe/model/shell.py b/src/jarabe/model/shell.py index 1810e7e..64f5e09 100644 --- a/src/jarabe/model/shell.py +++ b/src/jarabe/model/shell.py @@ -203,6 +203,10 @@ class Activity(gobject.GObject): """Returns the activity's PID""" return self._window.get_pid() + def get_bundle_path(self): + """Returns the activity's bundle directory""" + return self._activity_info.get_path() + def equals(self, activity): if self._activity_id and activity.get_activity_id(): return self._activity_id == activity.get_activity_id() -- cgit v0.9.1