https://bugzilla.redhat.com/show_bug.cgi?id=1764520
--- Comment #10 from Mike FABIAN <mfabian(a)redhat.com> ---
Yes, this directory is created by ibus-typing-booster when it first runs. That
is OK. As long as it is a directory, empty or not, it should not cause a
problem.
Can you try this and see whether it behaves differently on your system?:
[mfabian@localhost ~]$ python3
Python 3.7.4 (default, Aug 12 2019, 14:45:07)
[GCC 9.1.1 20190605 (Red Hat 9.1.1-2)] on linux
Type "help", "copyright", "credits" or
"license" for more information.
>> import xdg.BaseDirectory
>> xdg.BaseDirectory.save_data_path('ibus-typing-booster/data')
'/home/mfabian/.local/share/ibus-typing-booster/data'
>>
So this worked. Now I remove the empty directory:
[mfabian@localhost ~]$ rmdir
/home/mfabian/.local/share/ibus-typing-booster/data
[mfabian@localhost ~]$ python3
Python 3.7.4 (default, Aug 12 2019, 14:45:07)
[GCC 9.1.1 20190605 (Red Hat 9.1.1-2)] on linux
Type "help", "copyright", "credits" or
"license" for more information.
>> import xdg.BaseDirectory
>> xdg.BaseDirectory.save_data_path('ibus-typing-booster/data')
'/home/mfabian/.local/share/ibus-typing-booster/data'
>>
Still works. I remove the empty directory again:
[mfabian@localhost ~]$ rmdir
/home/mfabian/.local/share/ibus-typing-booster/data
And create a file in its place:
[mfabian@localhost ~]$ touch
/home/mfabian/.local/share/ibus-typing-booster/data
And try again:
[mfabian@localhost ~]$ python3
Python 3.7.4 (default, Aug 12 2019, 14:45:07)
[GCC 9.1.1 20190605 (Red Hat 9.1.1-2)] on linux
Type "help", "copyright", "credits" or
"license" for more information.
>> import xdg.BaseDirectory
>> xdg.BaseDirectory.save_data_path('ibus-typing-booster/data')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/xdg/BaseDirectory.py", line 70, in
save_data_path
os.makedirs(path)
File "/usr/lib64/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists:
'/home/mfabian/.local/share/ibus-typing-booster/data'
>>
Now it fails with exactly the error message you are getting.
What happens on your system when you do the above simple tests in python3?
--
You are receiving this mail because:
You are on the CC list for the bug.