find /opt/packettracer -name qt.conf
/opt/packettracer/bin/qt.conf
Uh, so it was thereā¦ LOL I deleted the comment thinking I was on a false track.
OK post the contents of qt.conf
.
cat qt.conf
File: qt.conf
[Paths]
Prefix = ./
Libraries = ./
[Platforms]
WindowsArguments = altgr
A shot in the dark: edit qt.conf
and add Data = /usr/share/qt/
below [Paths]
.
If it does not work delete the line (revert the file as it was before, that is).
It doesnāt work says the same thing
Starting Packet Tracer 8.2.1
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: linuxfb, xcb.
/usr/bin/packettracer lĆnia 8: 34811 Avortat (s'ha bolcat la memĆ²ria)./PacketTracer "$@"
Back to square one it seems.
You are still in the same shell where you set the variable before, right?
echo $QT_QPA_PLATFORM_PLUGIN_PATH
prints something?
It dosnāt show anything
Ah.
set QT_QPA_PLATFORM_PLUGIN_PATH /usr/lib/qt/plugins/platforms
again then run it.
Weāll make that permanent later.
Itās the same result doesnāt say anything
I donāt understand, what does not say anything?
set QT_QPA_PLATFORM_PLUGIN_PATH /usr/lib/qt/plugins/platforms
then
packettracer
should either print errors or finally work
Anyways, the line I told you to add is likely wrong.
Try with Resources = /usr/share/qt/resources/
instead.
Iāll be back later (dinner).
āāconfusedyeti@confusedyeti in /opt/packettracer/binš as š§ took 48s
ā°āĪ» packettracer
Starting Packet Tracer 8.2.1
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: linuxfb, xcb.
/usr/bin/packettracer lĆnia 8: 3703 Avortat (s'ha bolcat la memĆ²ria)./PacketTracer "$@"
āāconfusedyeti@confusedyeti in /opt/packettracer/binš as š§ took 164ms
ā°āĪ» set QT_QPA_PLATFORM_PLUGIN_PATH /usr/lib/qt/plugins/platforms
āāconfusedyeti@confusedyeti in /opt/packettracer/binš as š§
ā°āĪ» packettracer
Starting Packet Tracer 8.2.1
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: linuxfb, xcb.
/usr/bin/packettracer lĆnia 8: 3871 Avortat (s'ha bolcat la memĆ²ria)./PacketTracer "$@"
And Iāve already change the resources
Thank for the help until now, tomorrow morning Iāll continue searching and answer, but i donāt Iāll be able to try anything until 15:00.
Iāve also tried this:
Sounds like editing qt.conf did not do any good, at least before the āQt platform pluginā error was gone. Iām out of ideas at this point. See you tomorrow then.
Sounds like a Wayland issue:
If you must have this app installed and working for school, you may need to install a desktop supporting X11.
Just a cursory search on my part so itās hard to say.
Edit:
Sorry upon first glace, I thought the report was from Sept this year. I now see it was reported in 2022, so itās not exactly a current report.
OK I found a supposed fix. It is for Fedora, but it sounds like it addresses exactly the same issue. I do not have packet tracer installed so I do not know if the solution works with Arch, (or if it requires some modification to work).
See:
For anyone new to Linux (like me) wondering how and where to add the
--no-sandbox args
, these were the steps I took, Iām fairly new to Linux so I was scratching my head trying to figure it out, so bear with me:
Run these on a Terminal:
sudo nano /usr/share/applications/cisco-pt.desktop
- search for the line that says
Exec=/opt/pt/packettracer
and add--no-sandbox args
to the end of it. The whole line should sayExec=/opt/pt/packettracer --no-sandbox args
. - press
ctrl+o
andenter
to save - press
ctrl+x
to exit - I repeated the same steps mentioned above for the file
/usr/share/applications/cisco-ptsa.desktop
just to be sure.
At this point the files are ready, but you still need to re-run the xdg-menu scripts
Run these on a Terminal:
- sudo xdg-desktop-menu install /usr/share/applications/cisco-pt.desktop
- sudo xdg-desktop-menu install /usr/share/applications/cisco-ptsa.desktop
- sudo update-mime-database /usr/share/mime
- sudo gtk-update-icon-cache --force --ignore-theme-index /usr/share/icons/gnome
- sudo xdg-mime default cisco-ptsa.desktop x-scheme-handler/pttp
- sudo ln -sf /opt/pt/PacketTracer /usr/local/bin/PacketTracer
I just re-ran all of them because Iām not exactly sure which ones are needed lol, I logged out and Packet Tracer is working normally and I was able to log in with my Cisco credentials.
You downloaded the packettracer.tar.gz snapshot from AUR (en) - packettracer, extracted the PKGBUILD, then ran makepkg -si in a terminal in that directory, right? Thatās all that should have been needed, no additional steps unless the build process called for it, right?
Is that the exact process you followed?
Launch the program using one of the environment variables it has identified as valid.
QT_QPA_PLATFORM=xcb packettracer
Bonus content:
If you want to make a .desktop
file for it (so you can start the program with your launcher), you can set it up as described here: https://wiki.archlinux.org/title/Desktop_entries#Modify_environment_variables
Copy the desktop file right out of the directory where you cloned the repo, and put it in ~/.local/share/applications
:
cp cisco-pt.desktop ~/.local/share/applications/
Edit the file.
micro ~/.local/share/applications/cisco-pt.desktop
Add env QT_QPA_PLATFORM=xcb
after Exec=
, before the call to the binary. It should look like this when you are done:
[Desktop Entry]
Type=Application
Exec=env QT_QPA_PLATFORM=xcb /opt/packettracer/packettracer %f
Name=Packet Tracer 8.2.1
Icon=/opt/packettracer/art/app.png
Terminal=false
StartupNotify=true
MimeType=application/x-pt;application/x-pka;application/x-pkz;application/x-pks;application/x-pksz;
Categories=Network;
Save and exit the file, then you should be able to start the application from your launcher if you want to.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.