https://bugs.kde.org/show_bug.cgi?id=526600
Bug ID: 526600
Summary: AppImage applications fail to launch from paths
containing long non-latin characters
Classification: Plasma
Product: plasmashell
Version First 6.7.5
Reported In:
Platform: EndeavourOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: 1.0
Created attachment 196796
--> https://bugs.kde.org/attachment.cgi?id=196796&action=edit
The systemd unit name (the first line) from a path containing Chinese
characters.
DESCRIPTION
AppImage applications fail to launch from paths containing long non-latin
characters(like chinese)
But, it can be launched successfully when executed directly from the terminal.
STEPS TO REPRODUCE
1. Create a new folder named "一二三四五六七八九十十一十二十三"
2. Click the AppImage application inside the folder
OBSERVED RESULT
The application launches normally.
EXPECTED RESULT
The following error is displayed:
Invalid unit name or type:
app-\x2fhome\x2fpiako\x2f\xe4\xb8\x80\xe4\xba\x8c\xe4\xb8\x89\xe5\x9b\x9b\xe4\xba\x94\xe5\x85\xad\xe4\xb8\x83\xe5\x85\xab\xe4\xb9\x9d\xe5\x8d\x81\xe5\x8d\x81\xe4\xb8\x80\xe4\xb8\x80\xe4\xb8\x89\[email protected]
SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.30.0
Qt Version: 6.11.2
ADDITIONAL INFORMATION
It might be a systemd escaping issue. When systemd manages an application, it
escapes the Chinese character “一” into something like \xe4\xb8\x80, causing it
to balloon from 3 bytes in length directly to 12 bytes.
The systemd unit length limit is 256 bytes. 256/12 = 21 Chinese characters.
Then, after subtracting various auxiliary information and the filename, only a
few Chinese characters are left for the actual file path—and AppImage, in turn,
uses the full path.....
This issue was discussed on the Deepin forum:
https://bbs.deepin.org.cn/en/post/301782
And it seems that Deepin has already fixed this issue:
https://github.com/linuxdeepin/dde-application-manager/commit/caf5844d05ae633dff8d934b218cb1ad81633aad#diff-48f483965e97c77b3fef250fdd59889bf256a0ba9b073af581b7c7e1e6850871
My English isn't very good, so I used an LLM to translate it. And i think the
content above is basically fine.
--
You are receiving this mail because:
You are watching all bug changes.