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

Can't render notification #76

Closed
liubog2008 opened this issue Jun 21, 2022 · 8 comments
Closed

Can't render notification #76

liubog2008 opened this issue Jun 21, 2022 · 8 comments

Comments

@liubog2008
Copy link

version: 0.10.2

❯ RUST_BACKTRACE=full wired
A wired socket exists; taking ownership.  Existing wired processes will not receive CLI calls.
Notification bus name acquired.
Config reloaded.
[src/manager.rs:97] &notification = Notification: {
        id: 2,
        app_name: Wired,
        summary: Wired,
        body: Config was reloaded.,
        actions: {},
        app_image: false,
        hint_image: false,
        urgency: Low,
        percentage: None,
        time: 2022-06-21 10:41:28.024392670 +08:00,
        timeout: 5000
}
[src/manager.rs:97] &notification = Notification: {
        id: 3,
        app_name: notify-send,
        summary: Summary,
        body: A different body,
        actions: {},
        app_image: false,
        hint_image: false,
        urgency: Normal,
        percentage: None,
        time: 2022-06-21 10:41:42.253420686 +08:00,
        timeout: 4000
}

Notification can be displayed in log, but no notification window popup

@BeyondMagic
Copy link
Contributor

Post the config so we can see what it is happening.

@liubog2008
Copy link
Author

I use this config #63 (comment)

@liubog2008
Copy link
Author

[src/manager.rs:97] &notification = Notification: {
        id: 4,
        app_name: xxx,
        summary: Approval,
        body: yyy,
        actions: {"default": "Activate"},
        app_image: true,
        hint_image: false,
        urgency: Normal,
        percentage: None,
        time: 2022-06-21 11:11:33.608194615 +08:00,
        timeout: 4000
}

I find the notification with actions like the above can be show, although the popup window is in the central of the screen.

@BeyondMagic
Copy link
Contributor

BeyondMagic commented Jun 21, 2022

Well, it's not that hard to fix. I'll see later if I can update a few things on the Wiki later on, but the render part changed quite a bit:

See #62.

It seems the wiki has already been updated, here. And the configuration you posted was supposed to work. Perhaps an older version?

$ wired --version
0.10.2

Try cloning this repository and building the program in your computer.

@liubog2008
Copy link
Author

It worked after I delete render_criteria. I'll try to see the detail of all config fields. Thanks!

@BeyondMagic
Copy link
Contributor

I wouldn't recommend just taking it out, since all of them are not supposed to be rendered at once. Please try to modify the lines I posted on the reply before yours later on.

@liubog2008
Copy link
Author

liubog2008 commented Jun 21, 2022

I wouldn't recommend just taking it out, since all of them are not supposed to be rendered at once. Please try to modify the lines I posted on the reply before yours later on.

Thanks, I'll try to adjust the config. Now the display is very strange, but at least, it worked.

@liubog2008
Copy link
Author

image

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

No branches or pull requests

2 participants