ciscoPacketTracer{7,8}: force xorg display mode#452755
Conversation
Packet Tracer does not natively support wayland. This patch will allow Packet Tracer to keep working, even if a user has set `QT_QPA_PLATFORM=wayland`.
gepbird
left a comment
There was a problem hiding this comment.
Thanks for the fix, I made a VM with sway, reproduced the issue and confirmed this PR fixed it.
ciscoPacketTracer8 requires wayland as a build input, do you think it could work on Wayland natively? I'm still mainly on X11 and don't know much about Wayland, but I imagine it needs to be passed somewhere else too.
gepbird
left a comment
There was a problem hiding this comment.
After reading a little on the Arch wiki about this issue, I'm pretty sure we'd need to use nixpkgs built Qt libraries instead of the ones shipped with Packet Tracer if we want to run this natively on Wayland. I've tried it and I don't think it's worth it, because Qt 5 is no longer supported and packages like libsForQt5.qtwebengine is already marked as vulnerable with many CVEs.
Let's stick to your solution.
|
Interesting. I wonder if packet tracer should be tagged with |
Yeah, that sounds the correct way of handling this inside nixpkgs. I don't think there are actual risk associated with those CVEs, because Packet Tracer is a simulation program, the virtual PCs with web browsers access content on the simulated network, etc. |
|
The only risky thing that comes to mind is the Cisco login stuff. That does at least some amount of network interaction. |
gepbird
left a comment
There was a problem hiding this comment.
Sorry for going off-topic, I've opened a PR for that discussion.
There are no blockers for this PR.
|
Why not, I guess. |
Resolve: #190314
Force Packet Tracer to output in x11 mode. This helps some people using wayland desktops.
If a user on wayland has globally set
QT_QPA_PLATFORM=wayland, packet tracer will crash, because it does not support wayland. This patch will allow Packet Tracer to still work for such users.I have tested running Packet Tracer 7 and 8 on hyprland with
QT_QPA_PLATFORM=waylandset.Without this patch, it crashes. With this patch, it works.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.