Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] When the program starts, it automatically creates a new file in the user directory #593

Closed
poplar-at-twilight opened this issue Jul 28, 2023 · 6 comments
Labels
upstream issue Issue related to third party libraries

Comments

@poplar-at-twilight
Copy link

Bug description

When crow-translate starts, it automatically creates a new file named tesseract_opencl_profile_devices.dat in the user directory

poplar@c004-h0:~> cat tesseract_opencl_profile_devices.dat
<version>v0.1</version>
<device><type></type><score>�N�></score></device>

Steps to reproduce

  1. Installing crow-translate with zypper: sudo zypper in crow-translate
  2. Just click to start it.

Expected behavior

And then that strange file appeared in the user directory.

Screenshots

No screenshots at the moment, I can add them if you need them.

Environment

Operating System: openSUSE Tumbleweed 20230724
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.4-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

Additional context

poplar@c004-h0:~> date; zypper info crow-translate
2023年 07月 28日 星期五 18:39:09 CST
正在加载软件源数据...
正在读取已安装的软件包...


软件包 crow-translate 的信息:
------------------------------
软件源     : openSUSE-Tumbleweed-Oss
名称       : crow-translate
版本       : 2.10.0-1.4
架构       : x86_64
出品方     : openSUSE
已安装大小 : 2.7 MiB
已安装     : 是
状态       : 最新
源代码包   : crow-translate-2.10.0-1.4.src
上游网址   : https://crow-translate.github.io/
摘要       : A Qt GUI for Google, Yandex and Bing translators
描述       : 
    A simple and lightweight translator that allows to translate and speak
    text using Google, Yandex and Bing written with Qt5.
@poplar-at-twilight poplar-at-twilight added the bug Something isn't working label Jul 28, 2023
@Shatur
Copy link
Member

Shatur commented Jul 28, 2023

tesseract_opencl_profile_devices.dat

I assume that this file created by Tesseract, text recognition library.
But I can't reproduce this issue on my machine, so I think it's related to the tesseract configuration on your distro.

@Shatur Shatur added upstream issue Issue related to third party libraries and removed bug Something isn't working labels Jul 28, 2023
@poplar-at-twilight
Copy link
Author

Newly created configuration or cache files should be placed in ~/.config, ~/.cache, or an XDG-compliant folder, not directly in the user's home directory.

@poplar-at-twilight
Copy link
Author

I assume that this file created by Tesseract, text recognition library. But I can't reproduce this issue on my machine, so I think it's related to the tesseract configuration on your distro.

Thanks for the reply, I will report this issue to the openSUSE maintainers.

@Shatur
Copy link
Member

Shatur commented Jul 28, 2023

Newly created configuration or cache files should be placed in ~/.config, ~/.cache, or an XDG-compliant folder, not directly in the user's home directory.

We put program configuraltion in ~/.config. But this file is not related to Crow Translate. The problem is in the Tesseract library that somehow configured to put data in your user folder. I don't have this issue on my machine with tesseract 5.3.2 and crow-translate 2.10.7.

@victorhck
Copy link
Contributor

I assume that this file created by Tesseract, text recognition library. But I can't reproduce this issue on my machine, so I think it's related to the tesseract configuration on your distro.

Thanks for the reply, I will report this issue to the openSUSE maintainers.

did you fill a bug for this? same issue here, but didn't know is related with this...
Greetings

@poplar-at-twilight
Copy link
Author

did you fill a bug for this? same issue here, but didn't know is related with this... Greetings

I remember that I submitted an issue, but I never received replies from maintainers.

After that, I switched to using the package provided by flathub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream issue Issue related to third party libraries
Development

No branches or pull requests

3 participants