$OpenBSD: patch-src_dfeet_bus_watch_py,v 1.3 2013/10/19 08:00:00 ajacoutot Exp $
--- src/dfeet/bus_watch.py.orig	Thu Oct 17 20:50:38 2013
+++ src/dfeet/bus_watch.py	Sat Oct 19 09:55:35 2013
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 from __future__ import print_function
 
+import subprocess
 from gi.repository import GObject, Gtk, Gio
 
 from dfeet.uiloader import UILoader
@@ -72,9 +73,7 @@ class BusNameBox(Gtk.VBox):
     def __update_command_line(self):
         """get the command line of process-id is available"""
         if self.__process_id > 0:
-            procpath = '/proc/' + str(self.__process_id) + '/cmdline'
-            with open(procpath, 'r') as f:
-                self.__command_line = " ".join(f.readline().split('\0'))
+            self.__cmdline = " ".join(subprocess.Popen(['/bin/ps', '-o', 'command=', '-p', str(self.pid)], stdout=subprocess.PIPE ).communicate()[0].strip().split('\0'))
         else:
             self.__command_line = ''
 
