Open felipehw opened 2 years ago
How did I miss this? My apologies for responding too late
There are two options;
The problem with flatpak-spawn
is that it's a hack. I could create a wrapper that includes the --host
but it would be a really messy thing.
What do you think is best?
Not possible to add this as a Flatpak plugin ?
I could bundle kid3-cli with the application
That would require qt right?
@bellegarde-c I could bundle the entire kid3-cli application, but a plug-in wouldn't actually make it any easier.
@bilelmoussaoui I'll have to double check the dependencies, but Kid3 can be compiled without the KDE UI so it likely won't need the KDE runtime: https://github.com/flathub/org.kde.kid3/blob/5db32165aaf8d0eb42533998b1e8123d8fe68645/org.kde.kid3.json#L79
Shall I try to bundle kid3? Might be the best solution right now
Edit. Never mind. I tested both scenarios and I must have Qt to build kid3-cli... It might be possible to do so in a separate module, but at that point it might be easier to just add Kid3 as an extension and to symlink the packages together.... Not very elegant.
Humph, I see ... Bundle kid3-cli demands ugly solutions.
@Eonfge, the option of directly using kid3 isn't really an option because I don't use kid3 to occasionally edit music tags like name, etc., I use the integration in Lollypop to automatically write in the file my ratings of the music (★★★★★) while I'm hearing them.
Maybe use the more straightforward hackish option (flatpak-spawn --host
) or adding to the README.md
of the repo the know limitations of the Flatpak version.
I even found another issue with this workflow; the user will need to have kid3 as non-flatpak application... else, the sandboxed version of kid3-cli (from org.kde.kid3) will complain that it can't find the file since it's at a different mount point: The sandbox of Lollypop and Kid3 don't see the same files.
So... the problem gets bigger. even If I configure flatpak-spawn --host kid3-cli
to work... it would not work for Flathub users since Lollypop actually mounts all user's music using the proper sandboxing flow.
I'm at a dead end. Even the proposed solution is not ideal.
@bellegarde-c Weird question perhaps, but who kid3-cli? Are there not multiple python libraries to write metadata into tracks? It's a bit odd to have such a hard dependency on a KDE application like this.
Environment
b577a13258732597745727c70d8fd01cc2ca526938d98680a6b7b48212e7a3bd
(Date: 2022-05-02 15:06:28 +0000)org.gnome.Platform/x86_64/42
36.20220514.0
withkid3-common
layered packageBug
Lollypop Flatpak version doesn't find
kid3-cli
from host.My Silverblue host:
I accessing
kid3-cli
from host:Lollypop Flatpak version doesn't find
kid3-cli
from host:What I expect:
The mentioned behavior of calling
kid3-cli
from host viaflatpak-spawn
.I can access the
kid3-cli
from host manually:From what I know, the
flatpak-spawn
way is the only way to Save changes to file option to work in the Flatpak version.Observation: I opened this issue at upstream, but the developer ask me to open it here.