-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Yelp help not launching from help menu in EasyEffects on Manjaro #2046
Comments
Probably some unexpected interaction when using KDE considering yelp is being used on GNOME. I was not aware yelp was not being used on KDE. That is unfortunate. I am not sure if there is a way to force GTK to call yelp. At this moment we just ask gtk to open the help easyeffects/src/application.cpp Line 415 in 556ce62
Maybe there is a way to tell gtk_show_uri that yelp has to be used.
|
At least in its docs I could not see a way. All it says is
. The problem is that the default app for this in KDE will never be yelp =/. |
@wwmm Why not convert EasyEffects docs to a standard format like HTML instead of those ambiguous .page files, so Khelpcenter can view it ? |
No special reason other than the fact there were straightforward examples showing how to handle translations in Meson with the |
@wwmm It seems you can use yelp-tools to convert whole .page files to .html
I tried to create directory in /usr/share/doc/easyeffects with those generated HTML files, but sadly they are still not found when khelpcenter launch. |
Probably because it needs some kind of instruction to know it has to load html from that path. Or it is just a matter of figuring out where it searches for docs. For yelp the As far as our Meson scripts go we do not do anything special for yelp https://github.com/wwmm/easyeffects/blob/master/help/meson.build. We just tell Meson to do its thing. I wonder if under the hoods it is doing more than just copying files to
But what happens to the translations? |
I think translations are probably not going to work this way. Under the hoods Meson's module for gnome is doing the necessary calls to create the translation files for the yelp pages. We will have to figure out how to make Meson handle docs and translation in a way khelpcenter finds them. |
I was under the impression that we are no longer translating the docs due to #1108? Instead of trying to make the docs work in yelp/khelpcenter (I still have no idea why the help pages don’t work in flatpak), we could simply point everyone to the website https://wwmm.github.io/easyeffects/. It should be possible to change the current docs ci job to upload the docs from multiple versions. e.g. |
Oh... I forgot about it. So translations can be forgotten.
It is something to consider. It probably can be done just changing the url we already give to gtk. |
@vchernin English documentation is quite sufficient, and it's better to focus the effort on a high quality version of doc instead of multiple versions. The offline doc is necessary for any app that run on any desktop. @wwmm As an alternative, why instead of calling We execute directly the command The command will never fail since Edit: Sorry, it seems on Arch based distros it's marked as optional. So for the command to work, |
I created a bug on KDE bug tracker, may be KDE team will come with a solid solution like how they always do. |
This also works properly in flatpak builds, since it doesn't try to open easyeffects' help pages from the host yelp. |
The problem is security. Direct calls to executables can open the window for malicious software if not properly done. I prefer to not have this kind of headache... And this keeps us in the same page as other apps. I do not remember a gtk app that directly calls yelp. All of them delegate this task to the toolkit. |
I wonder if there is an easy way to check if the current session is a KDE session. This way we could do the system call only when running inside KDE and keeping doing what we already do for the others. It still is horrible from a security point of view but this way only one desktop environment would be vulnerable until a better solution is available. |
It seems that the environment variable |
The variable |
It won't be a problem but I've noticed now that calling |
I have updated the master branch with the workaround. As expected |
On Wayland:
On X11:
Both on Wayland and X11:
|
Thanks @medmedin2014 ! I've updated our master branch with the correct values for |
@wwmm |
Ok. Good to know. At this moment the workaround is checking for both |
@wwmm |
After pulling latest changes from master, I can confirm easyeffects help is working, without freezing or interrupting Rhythmbox / pipewire. Also, on Fedora 39 KDE I get:
easy effects with yelp My system:
|
Is the value in upper case or lower case? In my gnome session I have |
According to systemd's PAM and sd_session_get_desktop(3)
I tested the output of To avoid the problem of upper or lower case, it's best to get the value then apply upper case function on it then compare it to "KDE", just to be on the safe side. |
I cannot get the documentation to load via the in-app menu. I am running the latest Manjaro with KDE using the default repo version of EasyEffects and have Yelp installed.
K Help Centre is instead loaded via the in-app menu or by pressing F1 instead of Yelp with a page saying the documentation is missing.
It has taken me a few days to figure out that if I just load Yelp on its own then I can access the documentation.
I am unsure if this is a bug with the software or the fact that I am running Manjaro KDE.
The text was updated successfully, but these errors were encountered: