-
Notifications
You must be signed in to change notification settings - Fork 237
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
Workaround Ubuntu 17.04 tray bug #576
Conversation
electron/main.js
Outdated
// Source: https://bugs.launchpad.net/ubuntu/+bug/1559249 | ||
/////////////////////////////////////////////////////////////////////////////// | ||
const de = process.env.XDG_CURRENT_DESKTOP; | ||
if (de.includes('Unity')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be a better way to do this test. We need to change from Unity:Unity7 to Unity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just skip using the variable de
and instead process.env.XDG_CURRENT_DESKTOP.includes..
Looks good to me.. @mythsunwind wdyt? |
and @ffflorian :) |
To me too. Let's merge it before the new release. |
Skip de variable
🍻 🇪🇺 🍺 🇨🇦 |
* commit '2ee441781b6756c9b0071dc92efddf144c71ef9f': (34 commits) publish amplify event when deleting conversation Use libsodium-neon (wireapp#610) Release 2.13.2742 Bump electron to version '1.6.8' (wireapp#618) Preceed offline check when starting the app (wireapp#608) Prevent duplicate tray icon on update (wireapp#599) Release 2.13.2741 Fix debian pre/post-install scripts (wireapp#603) Release 2.13.2740 End app with exit on makeSingleInstance check (WEBAPP-3848) (wireapp#593) Bump electron version to 1.6.7 (wireapp#592) Remove testing URLs (wireapp#589) chore(package): update grunt-contrib-clean to version 1.1.0 (wireapp#570) check for XDG_CURRENT_DESKTOP (wireapp#587) Workaround Ubuntu 17.04 tray bug (wireapp#576) Make "unofficial" build options modular and dynamic (wireapp#568) Update release notes link (wireapp#573) Add repository for Debian/Ubuntu (wireapp#566) Release 2.13.2739 Rename package to wire-desktop (wireapp#550) ... # Conflicts: # package.json
This is an untested workaround for #574 and #575. I have used the console.log, and the property does seem to be set. (though in my case I was changing
KDE
toUnity
).If one of you has a working Zesty setup, please test. I've build a
.deb
(x64) to save you from building. If no one has a 17.04 install, I can ask the reporter take it for a spin.If this does work, we should let the folks over at electron/electron#9046 know.