Moises Henriquez avatar 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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.