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

Update KDE tray permission error #114

Closed
wants to merge 1 commit into from
Closed

Conversation

TingPing
Copy link
Contributor

As of Qt 6.2 the tray works as expected without extra permissions. This version should be in all supported KDE runtimes.

Using org.kde.* is not a correct permission and is a security risk.

Closes #66

As of Qt 6.2 the tray works as expected without extra permissions.
This version should be in all supported KDE runtimes.

Using org.kde.* is not a correct permission and is a security risk.

Closes #66
@barthalion
Copy link
Member

We cannot introduce a breaking change like this without at least opening an issue against affected apps.

anarcat added a commit to flathub/io.github.dweymouth.supersonic that referenced this pull request Jul 25, 2023
Those seem overly abusive. I haven't heard reports of the tray working
or not, so let's be on the careful side for now. If that fails, we can
revert this.

I used this to do an inventory:

https://github.com/search?q=org%3Aflathub+--own-name%3Dorg.kde&type=code

Some also use `--talk-name` but less frequently, and we already do
have such an entry.

Most people seem to do the wildcard, but according to this:

flathub-infra/flatpak-builder-lint#114

> As of Qt 6.2 the tray works as expected without extra
> permissions. This version should be in all supported KDE runtimes.
>
> Using org.kde.* is not a correct permission and is a security risk.

So let's just drop this completely and see what happens.
anarcat added a commit to flathub/io.github.dweymouth.supersonic that referenced this pull request Jul 25, 2023
Those seem overly abusive. I haven't heard reports of the tray working
or not, so let's be on the careful side for now. If that fails, we can
revert this.

I used this to do an inventory:

https://github.com/search?q=org%3Aflathub+--own-name%3Dorg.kde&type=code

Some also use `--talk-name` but less frequently, and we already do
have such an entry.

Most people seem to do the wildcard, but according to this:

flathub-infra/flatpak-builder-lint#114

> As of Qt 6.2 the tray works as expected without extra
> permissions. This version should be in all supported KDE runtimes.
>
> Using org.kde.* is not a correct permission and is a security risk.

So let's just drop this completely and see what happens.
@bbhtt
Copy link
Contributor

bbhtt commented Sep 28, 2023

We cannot introduce a breaking change like this without at least opening an issue against affected apps.

I'm opening issues/PRs to convert apps from using org.kde.* when available.

@bbhtt
Copy link
Contributor

bbhtt commented Dec 22, 2023

Can this be landed? I think I dealt with most of them, only 6 of my PRs are open right now https://github.com/search?q=author%3Abbhtt+is%3Apr+%22drop+org.kde%22+org%3Aflathub&type=pullrequests&p=1, most being merged.

Initially only, Discord, Discord Canary, Dropbox, Zoom and 1 or 2 from here https://github.com/search?q=author%3Abbhtt+is%3Aissue+%22drop+org.kde%22+org%3Aflathub&type=issues will need an exception.

@Erick555
Copy link
Contributor

Erick555 commented Dec 22, 2023

The check was dropped completely (personally I would make it as warning). Lot of apps still use it

@bbhtt
Copy link
Contributor

bbhtt commented Dec 22, 2023

That was for org.kde.StatusNotifierItem, org.kde.* should be error-ed by default which this PR is about.

Lot of apps still use it

A few like discord needs them, a few still have unmerged PRs.

@barthalion
Copy link
Member

Yeah, own_name == "org.kde.*" should become an error once PRs are merged and exceptions in-place.

@Erick555
Copy link
Contributor

Erick555 commented Dec 22, 2023

So this will break discord, zoom & co which is then reason for not making it until they're fixed/exempted.

@bbhtt
Copy link
Contributor

bbhtt commented Dec 22, 2023

Probably will add exemptions to them.

@bbhtt
Copy link
Contributor

bbhtt commented Dec 22, 2023

Ok, I went through this again

Lot of apps still use it

Only two are actionable (I'll open PR or issue) https://github.com/flathub/com.hunterwittenborn.Celeste and https://github.com/flathub/org.tribler.Tribler

The rest all have

a) open and working PRs
b) open PRs but I didn't find a way to test
c) open issues/draft PRs because they use old Electron/Qt and in some cases 5.14/5.15 runtimes ie. unmaintained
d) EOL and archived.

@bbhtt
Copy link
Contributor

bbhtt commented Jan 17, 2024

This is continued in #259 and #262

@bbhtt bbhtt deleted the pgriffis/kde-tray branch January 31, 2024 05:23
@bbhtt bbhtt added the exceptions Request to add exceptions label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exceptions Request to add exceptions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

finish-args-broken-kde-tray-permission is incorrect
4 participants