Skip to content

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Dec 19, 2018

Fix #14994; that bug was introduced in #14228 (that was my fault).

Also this commit explicit separates There are two functions of the tray icon:

  • a system tray widget (QSystemTrayIcon::isSystemTrayAvailable() == true)
  • a high-level notificator via balloon messages (QSystemTrayIcon::supportsMessages() == true)

These properties are mutually independent, e.g., on Fedora 29 + GNOME:

QSystemTrayIcon::isSystemTrayAvailable() == false;
QSystemTrayIcon::supportsMessages() == true;

UPDATE:

supportsMessages() makes no sense without isSystemTrayAvailable(): QSystemTrayIcon::showMessage() just not working on Fedora 29 + GNOME.

@fanquake fanquake added the GUI label Dec 19, 2018
@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 19, 2018

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #11625 (Add BitcoinApplication & RPCConsole tests by ryanofsky)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@laanwj
Copy link
Member

laanwj commented Dec 19, 2018

Concept ACK, TIL that those are separate

@maflcko maflcko added this to the 0.18.0 milestone Dec 19, 2018
@hebasto hebasto changed the title qt: Fix broken notificator on GNOME [WIP] qt: Fix broken notificator on GNOME Dec 19, 2018
That bug was introduced in bitcoin#14228.
@hebasto hebasto force-pushed the 20181218-fix-notificator branch from c7a816a to c8d9d90 Compare December 19, 2018 18:46
@hebasto
Copy link
Member Author

hebasto commented Dec 19, 2018

@laanwj Thank you for your review.

Concept ACK, TIL that those are separate

TIL too: supportsMessages() makes no sense without isSystemTrayAvailable(). Sorry for confusing.

PR description and commit have been updated.

@hebasto hebasto changed the title [WIP] qt: Fix broken notificator on GNOME qt: Fix broken notificator on GNOME Dec 19, 2018
@fanquake
Copy link
Member

fanquake commented Jan 2, 2019

Tested c8d9d90 on Fedora 29.1-2. No longer causes a segfault when a notification appears.
Created notifications using:

getnewaddress
generatetoaddress 1 the_new_address

fedora - notifications

However, from a quick check, this seems to break notifications on macOS (10.14.2). i.e if I make deploy this PR, and run with -regtest, I no longer see incoming transaction notifications in the Notification Centre when using generatetoaddress. Be good if someone else could confirm.

@promag
Copy link
Contributor

promag commented Jan 2, 2019

@fanquake I can't reproduce your case. All notifications go to notification centre but they don't popup when calling from the console window.

@maflcko maflcko merged commit c8d9d90 into bitcoin:master Jan 2, 2019
maflcko pushed a commit that referenced this pull request Jan 2, 2019
c8d9d90 Fix broken notificator on GNOME (Hennadii Stepanov)

Pull request description:

  Fix #14994; that bug was introduced in #14228 (that was my fault).

  ~Also this commit explicit separates~ There are two functions of the tray icon:
   - a system tray widget (`QSystemTrayIcon::isSystemTrayAvailable() == true`)
   - a high-level notificator via balloon messages (`QSystemTrayIcon::supportsMessages() == true`)

  ~These properties are mutually independent,~ e.g., on Fedora 29 + GNOME:
  ```
  QSystemTrayIcon::isSystemTrayAvailable() == false;
  QSystemTrayIcon::supportsMessages() == true;
  ```

  UPDATE:

  `supportsMessages()` makes no sense without `isSystemTrayAvailable()`: `QSystemTrayIcon::showMessage()` just not working on Fedora 29 + GNOME.

Tree-SHA512: 3e75ed2dfcef112bd64b8c329227ae68ba57f3be55769629f4eb3b1c52ef1f33db635f00bb5fd57c25f73a692971d6a847ea14c525f41c594fddde6e970a8ad8
@hebasto
Copy link
Member Author

hebasto commented Jan 2, 2019

@fanquake

... this seems to break notifications on macOS (10.14.2).

@promag

All notifications go to notification centre but they don't popup when calling from the console window.

See: #14976 (comment)

@hebasto hebasto deleted the 20181218-fix-notificator branch January 2, 2019 22:01
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 10, 2021
c8d9d90 Fix broken notificator on GNOME (Hennadii Stepanov)

Pull request description:

  Fix bitcoin#14994; that bug was introduced in bitcoin#14228 (that was my fault).

  ~Also this commit explicit separates~ There are two functions of the tray icon:
   - a system tray widget (`QSystemTrayIcon::isSystemTrayAvailable() == true`)
   - a high-level notificator via balloon messages (`QSystemTrayIcon::supportsMessages() == true`)

  ~These properties are mutually independent,~ e.g., on Fedora 29 + GNOME:
  ```
  QSystemTrayIcon::isSystemTrayAvailable() == false;
  QSystemTrayIcon::supportsMessages() == true;
  ```

  UPDATE:

  `supportsMessages()` makes no sense without `isSystemTrayAvailable()`: `QSystemTrayIcon::showMessage()` just not working on Fedora 29 + GNOME.

Tree-SHA512: 3e75ed2dfcef112bd64b8c329227ae68ba57f3be55769629f4eb3b1c52ef1f33db635f00bb5fd57c25f73a692971d6a847ea14c525f41c594fddde6e970a8ad8
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 11, 2021
c8d9d90 Fix broken notificator on GNOME (Hennadii Stepanov)

Pull request description:

  Fix bitcoin#14994; that bug was introduced in bitcoin#14228 (that was my fault).

  ~Also this commit explicit separates~ There are two functions of the tray icon:
   - a system tray widget (`QSystemTrayIcon::isSystemTrayAvailable() == true`)
   - a high-level notificator via balloon messages (`QSystemTrayIcon::supportsMessages() == true`)

  ~These properties are mutually independent,~ e.g., on Fedora 29 + GNOME:
  ```
  QSystemTrayIcon::isSystemTrayAvailable() == false;
  QSystemTrayIcon::supportsMessages() == true;
  ```

  UPDATE:

  `supportsMessages()` makes no sense without `isSystemTrayAvailable()`: `QSystemTrayIcon::showMessage()` just not working on Fedora 29 + GNOME.

Tree-SHA512: 3e75ed2dfcef112bd64b8c329227ae68ba57f3be55769629f4eb3b1c52ef1f33db635f00bb5fd57c25f73a692971d6a847ea14c525f41c594fddde6e970a8ad8
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 11, 2021
c8d9d90 Fix broken notificator on GNOME (Hennadii Stepanov)

Pull request description:

  Fix bitcoin#14994; that bug was introduced in bitcoin#14228 (that was my fault).

  ~Also this commit explicit separates~ There are two functions of the tray icon:
   - a system tray widget (`QSystemTrayIcon::isSystemTrayAvailable() == true`)
   - a high-level notificator via balloon messages (`QSystemTrayIcon::supportsMessages() == true`)

  ~These properties are mutually independent,~ e.g., on Fedora 29 + GNOME:
  ```
  QSystemTrayIcon::isSystemTrayAvailable() == false;
  QSystemTrayIcon::supportsMessages() == true;
  ```

  UPDATE:

  `supportsMessages()` makes no sense without `isSystemTrayAvailable()`: `QSystemTrayIcon::showMessage()` just not working on Fedora 29 + GNOME.

Tree-SHA512: 3e75ed2dfcef112bd64b8c329227ae68ba57f3be55769629f4eb3b1c52ef1f33db635f00bb5fd57c25f73a692971d6a847ea14c525f41c594fddde6e970a8ad8
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 13, 2021
c8d9d90 Fix broken notificator on GNOME (Hennadii Stepanov)

Pull request description:

  Fix bitcoin#14994; that bug was introduced in bitcoin#14228 (that was my fault).

  ~Also this commit explicit separates~ There are two functions of the tray icon:
   - a system tray widget (`QSystemTrayIcon::isSystemTrayAvailable() == true`)
   - a high-level notificator via balloon messages (`QSystemTrayIcon::supportsMessages() == true`)

  ~These properties are mutually independent,~ e.g., on Fedora 29 + GNOME:
  ```
  QSystemTrayIcon::isSystemTrayAvailable() == false;
  QSystemTrayIcon::supportsMessages() == true;
  ```

  UPDATE:

  `supportsMessages()` makes no sense without `isSystemTrayAvailable()`: `QSystemTrayIcon::showMessage()` just not working on Fedora 29 + GNOME.

Tree-SHA512: 3e75ed2dfcef112bd64b8c329227ae68ba57f3be55769629f4eb3b1c52ef1f33db635f00bb5fd57c25f73a692971d6a847ea14c525f41c594fddde6e970a8ad8
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 15, 2021
c8d9d90 Fix broken notificator on GNOME (Hennadii Stepanov)

Pull request description:

  Fix bitcoin#14994; that bug was introduced in bitcoin#14228 (that was my fault).

  ~Also this commit explicit separates~ There are two functions of the tray icon:
   - a system tray widget (`QSystemTrayIcon::isSystemTrayAvailable() == true`)
   - a high-level notificator via balloon messages (`QSystemTrayIcon::supportsMessages() == true`)

  ~These properties are mutually independent,~ e.g., on Fedora 29 + GNOME:
  ```
  QSystemTrayIcon::isSystemTrayAvailable() == false;
  QSystemTrayIcon::supportsMessages() == true;
  ```

  UPDATE:

  `supportsMessages()` makes no sense without `isSystemTrayAvailable()`: `QSystemTrayIcon::showMessage()` just not working on Fedora 29 + GNOME.

Tree-SHA512: 3e75ed2dfcef112bd64b8c329227ae68ba57f3be55769629f4eb3b1c52ef1f33db635f00bb5fd57c25f73a692971d6a847ea14c525f41c594fddde6e970a8ad8
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bitcoin-qt: segmentation fault on Fedora 29
6 participants