خطأ البحث عن ملف اللغة - إصدار 02 أكتوبر

Started by AmerAsiri, October 05, 2026, 11:51:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gradgrind

I recompiled fet-7.11.1 with Qt6.11.2 and the problem does not arise! It seems to have started with 6.12.

As all my tests have been with Qt6.11.2, I will start testing again with Qt6.12.

Liviu Lalescu

Thank you, Michael! Let's hope our new code is correct - otherwise we need more changes. Unfortunately, I cannot test on my computer, because I don't meet the bug.

gradgrind

I have now tested your new code with Qt6.12. The bug is still there. That is what I expected because I think you really need to use qapplication.applicationFilePath(), not qapplication.applicationDirPath(), and then take the canonical path of this. applicationFilePath() includes the symlink, applicationDirPath() doesn't.

The code I posted earlier still works with Qt6.12. I am testing on Ubuntu 26.04 in a virtual machine.

Liviu Lalescu

OK, Michael, sorry for my bad! (I was following ChatGPT, as suggested by Volker.)

Could you please change in my current (latest) snapshot what needs to be done to correct the bug? I mean, I prefer the cleaner way with 3 strings/QDirs/QFileInfos, and test if the QString is empty.

Then please attach or send your new code, and I'll check (I prefer the whole file(s), so I can do a diff).


Liviu Lalescu


gradgrind

That looks alright.

However, I think fi1b may be unnecessary – s1 should always be a directory anyway.

Liviu Lalescu


Liviu Lalescu

I just added a new snapshot, as you suggested, removing fi1b. Thank you!

Volker Dirr

Chat-gpt also thinks fi1b is not needed. I sent Liviu a mail short before you wrote :-)

With MacOS, after coping the translations into the fet.app, it worked fine from the terminal and with links, even from other folders. I didn't tried more strange stuff like starting from write protected folder and starting from a cloud directory via web browser.