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

Workaround Ubuntu 17.04 tray bug #576

Merged
merged 3 commits into from
Apr 18, 2017
Merged

Workaround Ubuntu 17.04 tray bug #576

merged 3 commits into from
Apr 18, 2017

Conversation

ConorIA
Copy link
Contributor

@ConorIA ConorIA commented Apr 15, 2017

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 to Unity).

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.

electron/main.js Outdated
// Source: https://bugs.launchpad.net/ubuntu/+bug/1559249
///////////////////////////////////////////////////////////////////////////////
const de = process.env.XDG_CURRENT_DESKTOP;
if (de.includes('Unity')) {
Copy link
Contributor Author

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.

Copy link
Contributor

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..

@ConorIA
Copy link
Contributor Author

ConorIA commented Apr 15, 2017

Went in with Virtualbox.
Success!

screenshot_20170415_120820

@lipis
Copy link
Contributor

lipis commented Apr 18, 2017

Looks good to me.. @mythsunwind wdyt?

@lipis
Copy link
Contributor

lipis commented Apr 18, 2017

and @ffflorian :)

@mythsunwind
Copy link
Contributor

To me too. Let's merge it before the new release.

@mythsunwind mythsunwind self-requested a review April 18, 2017 10:07
Skip de variable
@lipis lipis merged commit 07705ed into wireapp:master Apr 18, 2017
@lipis
Copy link
Contributor

lipis commented Apr 18, 2017

🍻 🇪🇺 🍺 🇨🇦

sidneys added a commit to sidneys/wire-desktop that referenced this pull request May 5, 2017
* 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
@ConorIA ConorIA deleted the unity branch September 7, 2017 20:14
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.

3 participants