-
Notifications
You must be signed in to change notification settings - Fork 10
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
Menu is not exported (global menu) #6
Comments
I assume you use KDE, do you know how it configures this? Or is Qt supposed to always export its menu? |
Yes, KDE user here.
AFAIK, Qt apps are natively supported |
I don't have any but will test and report... |
I tried and it doesn't seem to work, so it doesn't seem sth specific of the Octave flatpak package. I'll try to investigate where the problem is, if in flatpak missing some libs or if in KDE not supporting flatpak apps. I think we can close this issue... |
It will be fixed once this is added to flathub: https://cgit.kde.org/flatpak-kde-runtime.git/commit/?id=f3cdd21232204f5c0518edd4759b6a73d7def019 |
The menu of the file editor appears embedded in the editor frame, hence it is not exported to the global menu. Shouldn't Octave have just one application menu, which would adapt according to the frame under focus? |
Reopening this issue. Please see: In short, Flatpak stopped inheriting permission requests from the runtime. The apps need to list the permissions themselves. Perhaps adding |
I hope so!
I get an |
I don't think running with sudo is a conveniet temporary workaround, because the globalmenu doesn't work for applications run by a different user, root included (the dbus process it is based on, is user specific). |
Wait, this doesn't mean running Octave as sudo? I guess I missed that part... |
Well, I just tried and:
|
Unfortunately, as a result .octave_hist and .selected_editor (and I bet other files/folders in my $HOME) are now owned by root. Will have to change those manually, to avoid backup errors, and denied modifications when running octave on my own user. |
Well, that command ( |
The command should be |
Oops! Ok, I got it know. How silly: I didn't try at first when @Alexander-Wilms mentioned about And indeed, using But I'm curious, what is it exactly that that command modifies? |
It adds a permission to allow the application to talk to the
I agree with this, requiring each application to declare that they may talk to this or that desktop integration feature seems like an unnecessary burden. |
I see. Thanks for the explanation! |
Wondering... is there a way to revert this:
I will stay with flatpak 0.11.8.3 for now until flatpak/flatpak#2012 is closed |
You can delete the override file. That command simply creates or adds to an override file, should be under /var/lib/flatpak/overrides if you are installing globally as root. |
awesome, thank you! |
Should we close this issue? I guess this can be considered an upstream issue at this point... |
Could you please reopen this issue given the final decision upstream (flatpak/flatpak#2012)? Fixing this in the flatpak package will just require adding
to the "finish-args" section of manifest.json. The first line is to respect the look and feel of the system (i.e. color scheme), and the second is to export the application menu. KDE apps have done this already (https://phabricator.kde.org/D15958) |
Excellent, thank you |
Things move fast. It seems applications can again rely on runtime specifications: EDIT: Sorry, I meant flatpak/flatpak#2230 |
So with flatpak 1.2 or 2.0 or whatever, we can safely revert ac1ae28? |
Well, it will need those changes in flatpak (maybe flatpak 1.0.4; or 1.1 or who knows, not sure how these things are added to the flatpak release schedule) as well as reverting the changes in the kde runtime. I will try to be aware of this and will let you know... |
Released in flatpak (see below). Will let you know when it is reverted in kde runtime... https://github.com/flatpak/flatpak/releases Changes in 1.0.4
|
As far as I can see, these lines were never removed from the kde runtime:
However, the globalmenu is gone if I remove the overrides, which I don't quite understand. |
@mtmiller @Alexander-Wilms It seems all what is needed is to rebuild the application with latest flatpak-builder. |
@Alexander-Wilms would you consider rebuilding octave so we could check this out? |
thanks! Edit: it works as expected. |
The manifest in use still adds the permissions manually. Should this be reverted now? |
I think so |
the menu is located within the application window even though menu's in my system are configured to appear in a top bar
The text was updated successfully, but these errors were encountered: