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

bug(interop): no app_id on wayland #598

Closed
3 tasks done
deathtrip opened this issue Aug 31, 2024 · 10 comments · Fixed by #603
Closed
3 tasks done

bug(interop): no app_id on wayland #598

deathtrip opened this issue Aug 31, 2024 · 10 comments · Fixed by #603
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@deathtrip
Copy link

Describe the bug

When running UAD-ng, or the previous gen UAD for that matter, the app_id value on wayland is empty.
This is a problem when setting window rules on tiling window managers, and for programs thet rename workspaces based on their app_id.

Expected behavior

There should be a app_id value.

You have a solution?

No response

Operating System

Linux

Window Manager

sway

Desktop Environment

No response

Provide logs

I don't think it applies to this issue.

Acknowledgements

  • This issue is not a duplicate of an existing bug report.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@deathtrip deathtrip added the bug Something isn't working label Aug 31, 2024
@Rudxain
Copy link
Member

Rudxain commented Sep 1, 2024

I guess this is more like a feature request?

Iced supports this. This might get resolved by #551 #603

@deathtrip
Copy link
Author

It's not really a feature, more like a standard, and it's a rarity for an application to not provide it.

@AnonymousWP
Copy link
Member

Could you help us by submitting a PR?

@deathtrip
Copy link
Author

Unfortunately not, as i am not familiar with the UAD codebase nor rust in general.

@Rudxain
Copy link
Member

Rudxain commented Sep 4, 2024

I was reading the docs, and it turns out (according to rust-analyzer) we aren't even touching using iced::settings 💀

I'll open a PR for that, but I still have no idea where to pass the struct

@Rudxain
Copy link
Member

Rudxain commented Sep 4, 2024

Wait, we are using iced::Settings (alias of iced::settings::Settings), but not iced::settings directly (notice the casing of "s")

@Rudxain
Copy link
Member

Rudxain commented Sep 4, 2024

Found it!:

Self::run(Settings {
window: Window {
size: iced::Size {
width: 950.0,
height: 700.0,
},
resizable: true,
decorations: true,
icon: icon::from_file_data(logo, Some(ImageFormat::Png)).ok(),
..iced::window::Settings::default()
},
default_text_size: iced::Pixels(16.0),
..Settings::default()
})

It's an easy fix! We just have to specify the id field, because default is None (the Iced PR made me believe it was inferred from crate name, which is what Clap does)

@Rudxain
Copy link
Member

Rudxain commented Sep 4, 2024

@deathtrip Can you please test this version to see if the metadata is set?

I have Wayland, but not Sway, only Mutter

@deathtrip
Copy link
Author

Just tested the version linked in the above post, and the app_id is still empty.

@Rudxain Rudxain reopened this Sep 9, 2024
@Rudxain
Copy link
Member

Rudxain commented Sep 9, 2024

After reading more docs, I suspect this is an Iced bug, which implies this isn't something we can/should fix. Unless, it's something specific to the version main uses, in that case it could be fixed by #551

@Rudxain Rudxain added the wontfix This will not be worked on label Sep 9, 2024
@Rudxain Rudxain changed the title bug(scope): no app_id on wayland bug(interop): no app_id on wayland Sep 9, 2024
@Rudxain Rudxain changed the title bug(interop): no app_id on wayland bug(interop): no app_id on wayland Sep 9, 2024
@AnonymousWP AnonymousWP closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
3 participants