AttributeError: 'NoneType' object has no attribute 'lower'

Bug #1586851 reported by ser0ser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rapid Photo Downloader
Status tracked in Pyqt
Pyqt
Fix Released
High
Damon Lynch

Bug Description

When I start Rapid Photo Downloader, I get:

Traceback (most recent call last):
  File "/home/ser/.local/lib/python3.5/site-packages/raphodo/rapid.py", line 831, in initStage3
    get_fdo_cache_thumb_base_directory())
  File "/home/ser/.local/lib/python3.5/site-packages/raphodo/storage.py", line 401, in get_fdo_cache_thumb_base_directory
    if get_desktop() == Desktop.lxde:
  File "/home/ser/.local/lib/python3.5/site-packages/raphodo/storage.py", line 267, in get_desktop
    env = get_desktop_environment().lower()
AttributeError: 'NoneType' object has no attribute 'lower'

I'm using last stable Ubuntu with OpenBox as desktop env.

Related branches

Damon Lynch (dlynch3)
Changed in rapid:
milestone: none → 0.9.0a4
Revision history for this message
Damon Lynch (dlynch3) wrote :

Thanks for the bug report. I've made the fix. Meanwhile if you set the environment variable XDG_CURRENT_DESKTOP to any value (it doesn't matter what value) Rapid Photo Downloader should start.

Revision history for this message
ser0ser (ser-man) wrote :

Oh.. thanks for the hint, it's way simpler than my workaround: a dirty hack in raphodo/storage.py :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.