nautilus-subliminal icon indicating copy to clipboard operation
nautilus-subliminal copied to clipboard

Not integrating with nautilus.

Open rohitghali opened this issue 6 years ago • 2 comments

wget didn't work. So I manually downloaded the file and installed it. It installed good. Screenshot also attached. I even restarted the system. Still nothing in the right click options. Please help.

screenshot from 2018-09-18 18-40-20

rohitghali avatar Sep 18 '18 13:09 rohitghali

run nautilus from terminal and you will probably see error log for example, mine looked like this:

Traceback (most recent call last):
  File "/usr/share/nautilus-python/extensions/nautilus-subliminal.py", line 137, in __init__
    os.makedirs(dirs.user_cache_dir)
  File "/usr/lib/python3.7/os.py", line 221, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/user/.cache/subliminal'

so, I opened nautilus-subliminal.py and changed these lines (line 137-138)

                os.makedirs(dirs.user_cache_dir)
                os.makedirs(dirs.user_config_dir)

to these

            if not os.path.exists(dirs.user_cache_dir):
                os.makedirs(dirs.user_cache_dir)
            if not os.path.exists(dirs.user_cache_dir):
                os.makedirs(dirs.user_config_dir)

and now it works

yuzvir avatar Dec 23 '18 22:12 yuzvir

Worked for me. Thanks @yuzvir . It might be a good idea to turn this into a pull request.

yosko avatar Apr 08 '20 12:04 yosko