Skip to content
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

Global Menus Support #288

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Global Menus Support #288

wants to merge 1 commit into from

Conversation

rangelovd
Copy link

Connects Session Bus to Global Menu.
Fixes #127

@flathubbot
Copy link
Contributor

Started test build 107372

@flathubbot
Copy link
Contributor

Build 107372 failed

@Jehan
Copy link
Collaborator

Jehan commented Apr 17, 2024

bot, build

@flathubbot
Copy link
Contributor

Queued test build for org.gimp.GIMP.

@flathubbot
Copy link
Contributor

Started test build 115244

@flathubbot
Copy link
Contributor

Build 115244 failed

@Jehan
Copy link
Collaborator

Jehan commented Apr 17, 2024

Apparently there is again a permission issue, though it's a bit weird. The new permission we request is com.canonical.AppMenu.Registrar and the cid-missing-affiliation-gnome say we are using the project_group tag (we are not, I've double-checked the manifest).
Looks like a mixup.

@hfiguiere You are good with these permission novelties. You know what's up?

flatpak run --command=flatpak-builder-lint org.flatpak.Builder --exceptions repo repo
 in dir /srv/buildbot/worker/build-x86_64-4/build (timeout 1200 secs)
 watching logfiles {}
 argv: b'flatpak run --command=flatpak-builder-lint org.flatpak.Builder --exceptions repo repo'
 using PTY: False
{
    "errors": [
        "appstream-failed-validation"
    ],
    "warnings": [
        "appstream-name-too-long"
    ],
    "appstream": [
        "E: org.gimp.GIMP:3: cid-missing-affiliation-gnome org.gimp.GIMP"
    ],
    "message": "Please consult the documentation at https://docs.flathub.org/docs/for-app-authors/linter"
}

@hfiguiere
Copy link
Collaborator

you didn't rebase the PR. fixes won't just appear by miracle.

@Jehan
Copy link
Collaborator

Jehan commented Apr 17, 2024

Ah.

@Jehan
Copy link
Collaborator

Jehan commented Apr 17, 2024

bot, build

@flathubbot
Copy link
Contributor

Queued test build for org.gimp.GIMP.

@Jehan
Copy link
Collaborator

Jehan commented Apr 17, 2024

@rangelovd and @vroger11 Once the test build succeeds (hoping it does), could you please test it and confirm me that the test flatpak does work with global menu? I will only merge once I get test confirmation. Thanks!

@flathubbot
Copy link
Contributor

Started test build 115350

@flathubbot
Copy link
Contributor

Build 115350 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/98164/org.gimp.GIMP.flatpakref

@vroger11
Copy link

vroger11 commented Apr 27, 2024

Hi, sorry I am a bit late I got,
error: Can't load uri https://dl.flathub.org/build-repo/98164/org.gimp.GIMP.flatpakref: Server returned status 404
So i could not test it :/

@Jehan
Copy link
Collaborator

Jehan commented Apr 27, 2024

bot, build

@flathubbot
Copy link
Contributor

Queued test build for org.gimp.GIMP.

@flathubbot
Copy link
Contributor

Started test build 117280

@flathubbot
Copy link
Contributor

Build 117280 was cancelled

Connects Session Bus to Global Menu.
Fixes flathub#127
@flathubbot
Copy link
Contributor

Started test build 117281

@Jehan
Copy link
Collaborator

Jehan commented Apr 27, 2024

@vroger11 Yes the test build artifacts are only alive a few days. I just restarted a test build. When it's finished, the bot will again comment with a command line to run. Could you test then?

@flathubbot
Copy link
Contributor

Build 117281 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/100106/org.gimp.GIMP.flatpakref

@vroger11
Copy link

Sadly, it does not work, I get this in the terminal:
Gtk-Message: 17:49:58.965: Failed to load module "appmenu-gtk-module"

@Jehan
Copy link
Collaborator

Jehan commented Apr 27, 2024

@vroger11 Just to be sure, how did you run this flatpak? In particular, from command line, you should be able to run it with:

flatpak run org.gimp.GIMP//test

Basically if you have the stable and/or beta flatpak installed and you just run from menus or the like, I'm unsure which flatpak will run (well it is in fact verifiable, but running with the //test suffix is just as good).

If this is really the correct test flatpak you ran and it doesn't work, I don't know. Further patches welcome. I personally have no idea how to fix this.

@Jehan
Copy link
Collaborator

Jehan commented Apr 27, 2024

P.S.: thanks for testing by the way, @vroger11 !

@vroger11
Copy link

It is normal, I used flatpak run org.gimp.GIMP (I have only the test branch installed). And flatpak run org.gimp.GIMP//test gives me the same result.

@Jehan
Copy link
Collaborator

Jehan commented Apr 28, 2024

Well if you only have this branch installed, flatpak run org.gimp.GIMP is the same of course. It's only when you have several branch installed that you can't be completely sure which one is run by default (you in fact can with flatpak make-current command, which was the other method I was mentioning).

Anyway too bad it didn't work. Let's see if @rangelovd knows a better solution.

@brunvonlope
Copy link
Collaborator

brunvonlope commented May 15, 2024

Considering what I researched and described in https://gitlab.gnome.org/GNOME/gimp/-/issues/7371#note_2054303, this MR is probably flawed by design and maybe will never implement global menus successfully. Quoting:

For summarize, the old global menu concept isn't supported at all in KWin using Wayland. See: https://bugs.kde.org/show_bug.cgi?id=424485. A protocol was proposed but rejected by Freedesktop (then replaced by this proposition) and considering that GNOME Shell itself dropped the support to global menus, only with brute force of the KDE contributors that this can fixed in KDE side, which hasn't happened yet.

@brunvonlope
Copy link
Collaborator

Converting to draft as per: #288 (comment)

@brunvonlope brunvonlope marked this pull request as draft August 10, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No global menu (or appmenu) under KDE/unity
6 participants