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

Make UnityLauncherAPI work #12

Closed
wants to merge 2 commits into from
Closed

Conversation

JakobDev
Copy link

@JakobDev JakobDev commented Mar 1, 2024

@flathubbot
Copy link
Contributor

Started test build 103991

@flathubbot
Copy link
Contributor

Build 103991 failed

@lewisakura
Copy link
Collaborator

bot, build

@flathubbot
Copy link
Contributor

Queued test build for dev.vencord.Vesktop.

@flathubbot
Copy link
Contributor

Started test build 106439

@flathubbot
Copy link
Contributor

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

flatpak install --user https://dl.flathub.org/build-repo/89254/dev.vencord.Vesktop.flatpakref

- --talk-name=com.canonical.Unity
# Electron checks if it running on Unity/KDE before using the UnityLauncherAPI, so we need to pretend we are on KDE to make it work on other desktops
- --env=XDG_CURRENT_SESSION=KDE
- --env=XDG_CURRENT_DESKTOP=KDE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretending to be a different desktop environment seems wrong. why is this necessary?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Electron does check the current desktop for some reason. If we want to make this work outside KDE, we need to pretend we are on KDE.

@Vendicated
Copy link
Collaborator

yeah like i said this is a bad idea. for example this completely breaks opening links because xdg-open tries to use konqueror to open it. electron 32 will remove this kde check, so we should just wait for that! thanks for the contribution anyway

image

@Vendicated Vendicated closed this Jun 16, 2024
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.

Unread Notification Badge not working on KDE
4 participants