| Summary: | kioclient5 ls activities:/current returns mangled file/folder names | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] kio-extras | Reporter: | alx.kuzza |
| Component: | default | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | kdelibs-bugs-null, nicolas.fella |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
alx.kuzza
2022-11-28 00:37:31 UTC
To actually see the real values you can use this script:
#!/bin/bash
kioclient5 ls activities:/current | \
xargs -I %% bash -c '
b=$(echo -n %%);
let l=${#b}%4;
if [ $l -ne 0 ] ; then let l=4-$l; fi;
for((i=0;i<l;i++)); do b=${b}=; done;
echo -n $b | base64 -d; echo ""'
I'd say this is intentional. What's encoded here isn't just the file name, it's the full path. Plainly appending that won't work because it contains slashes so it would result in a different kind of URL. (In reply to Nicolas Fella from comment #2) > I'd say this is intentional. What's encoded here isn't just the file name, > it's the full path. Plainly appending that won't work because it contains > slashes so it would result in a different kind of URL. kioclient5 ls file:///etc - returns normal file names we would rather have 1) normal names returned for activities, those will be absolute paths to the files, which is ok or 2) maybe we can return names as URLs? like file:///path-to-file Why is it important that the names are human-readable? The activities worker is mostly an implementatio detail, not something the user is expected to interact directly with much |