Skip to content

xfce4-screensaver-configure: If ~/.config/user-dirs.dirs does not exist the configuration for slideshow option won't open

Traceback (most recent call last):
  File "/usr/bin/xfce4-screensaver-configure", line 837, in <module>
    configure(obj.to_dict())
  File "/usr/bin/xfce4-screensaver-configure", line 756, in configure
    win = ConfigurationWindow(parsed)
  File "/usr/bin/xfce4-screensaver-configure", line 427, in __init__
    widget = self.get_option_widget(opt)
  File "/usr/bin/xfce4-screensaver-configure", line 499, in get_option_widget
    widget.set_current_folder(folder)
TypeError: Argument 1 does not allow None as a value

This is the error I get. After configuring the ~/.config/user-dirs.dirs file the configuration opens.

GLib.UserDirectory.DIRECTORY_PICTURES can be None and then the slideshow configuration window does not open (the above error occurs).

Edited by vjeranc