ju1ius/fluxdgmenu — Issue #1: crypted partitions not correctly identified
Author: itoffshore
Created: 2011-10-20 22:38:02+00:00
State: open

I think there may be some issues with detecting the current working directory on systems with encrypted partitions. I have crypted volumes for /home & /root & now get errors on uninstalling fluxdgmenu such as:

sh: 0: getcwd() failed: No such file or directory

& files are installed to /home/root/.fluxbox instead of the user's home. Consequently desktop files in ~/.local/share/applications are not added to /home/root/.fluxbox/fluxdgmenu/applications

Running fxm-daemon update gives:

fxm-daemon update
Traceback (most recent call last):
File "/usr/bin/fxm-daemon", line 101, in
daemon.update(options)
File "/usr/lib/fluxdgmenu/fxm/daemon.py", line 47, in update
fp.write(menu.parse_menu_file(config.MENU_FILE))
File "/usr/lib/fluxdgmenu/fxm/applications.py", line 21, in parse_menu_file
output = "".join( self.directory(root) )
File "/usr/lib/fluxdgmenu/fxm/applications.py", line 33, in directory
yield self.submenu(child, level)
File "/usr/lib/fluxdgmenu/fxm/applications.py", line 41, in submenu
submenu = "".join( self.directory(entry, level+1) )
File "/usr/lib/fluxdgmenu/fxm/applications.py", line 35, in directory
yield self.application(child, level)
File "/usr/lib/fluxdgmenu/fxm/applications.py", line 56, in application
icon = self.find_icon(entry.get_icon()) if self.show_icons else ''
File "/usr/lib/fluxdgmenu/fxm/base.py", line 92, in find_icon
return self.lookup_default_icon().encode('utf-8')
AttributeError: 'NoneType' object has no attribute 'encode'

Pointing the fluxbox menu to include /home/root/.fluxbox/fluxdgmenu/applications gives the correct menu entires for /usr/share/applications but is missing entires from ~/.local/share/applications.