Commits

Moises Henriquez committed 0da5d56

Fixes #21

Comments (0)

Files changed (2)

src/vasm/backend/BOOTLOADERS.py

     for fs in fslist:
         if fs.mountpoint == "/":
             return fs.device
+    return None
 
 def get_linux_boot_info(root_partition):
     """ Use linux-boot-prober to find out how to boot this OS 

src/vasm/ui/gtk2/modules/usermanage.py

         # set default icon
         iconpath = "/usr/share/apps/kdm/pics/users/default2.png"
         if not os.path.exists(iconpath):
-            iconpath = os.path.join(
-            os.getcwd(), "modules/support/data/icons/category_personal.png")
+            iconpath = os.path.join(datapath, 'category_personal.png')
         self.facepath = iconpath
         picimg.set_from_pixbuf(gtk.gdk.pixbuf_new_from_file_at_size(iconpath, 96, 96))
         picbt.set_image(picimg)
 
     def get_user_face(self, uname):
         """ Find the user face icon and return it in the form of a gtk.gdk.Pixbuf"""
-        iconsdir = os.path.join(datapath, 'icons')
-        defaulticon = os.path.join(iconsdir, "category_personal.png")
+        defaulticon = os.path.join(datapath, "category_personal.png")
         usericon = os.path.join("/home",uname,".face")
         if not os.path.exists(usericon):
             return gtk.gdk.pixbuf_new_from_file_at_size(defaulticon, 32, 32)