-
Notifications
You must be signed in to change notification settings - Fork 9
I made PacketTracer more bearable for myself, is any of this interesting to you? #26
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| *.deb | ||
| *.flatpak | ||
| build/ | ||
| repo/ | ||
| .flatpak-builder/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,29 @@ | ||
| app-id: com.cisco.PacketTracer | ||
| runtime: org.kde.Platform | ||
| runtime-version: '5.15-22.08' | ||
| runtime-version: '6.8' | ||
| sdk: org.kde.Sdk | ||
| base: io.qt.qtwebengine.BaseApp | ||
| base-version: '5.15-22.08' | ||
| base-version: '6.8' | ||
| command: /app/pt/packettracer | ||
| separate-locales: false | ||
|
|
||
| tags: | ||
| - proprietary | ||
|
|
||
| finish-args: | ||
| - --share=ipc | ||
| - --share=network | ||
| # - --share=ipc | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think removing this could potentially negatively impact performance1. Footnotes |
||
| # - --share=network | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should keep this otherwise I don't believe it's possible to login with your Cisco account. |
||
| - --socket=x11 | ||
| - --socket=pulseaudio | ||
| # - --socket=pulseaudio | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't remember there being any audio output from Packet Tracer lol, so it's fine to remove this. |
||
| - --device=dri | ||
| - --filesystem=xdg-download | ||
| # - --filesystem=xdg-download | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason I added was so that I had somewhere I could save the session file. Most Flatpak's are meant to be usable out of the box and if you want it more restricted, I think the best way to do this is to have the user do so from Flatseal before they launch the Flatpak. |
||
| - --persist=. | ||
| - --env=TZ= | ||
| - --nofilesystem=xdg-config/kdeglobals | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fine as long as you can confirm this doesn't break anything on KDE1. Footnotes |
||
| - --no-talk-name=com.canonical.AppMenu.Registrar | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fine as long as you can confirm this doesn't remove this functionality. |
||
| - --no-talk-name=org.kde.kconfig.notify | ||
| - --no-talk-name=org.kde.kdeconnect | ||
| - --no-talk-name=org.kde.KGlobalSettings | ||
|
|
||
| modules: | ||
| - name: packettracer | ||
|
|
@@ -35,13 +40,16 @@ modules: | |
| - install -D com.cisco.PacketTracer.png /app/share/icons/hicolor/128x128/apps/com.cisco.PacketTracer.png | ||
| - install -D com.cisco.PacketTracer.desktop /app/share/applications/com.cisco.PacketTracer.desktop | ||
| - install -D com.cisco.PacketTracer.url.desktop /app/share/applications/com.cisco.PacketTracer.url.desktop | ||
| - patch /app/pt/packettracer packettracer.patch | ||
| - sed -i -e 's\/opt/\/app/\g' /app/pt/packettracer /app/pt/linguist | ||
| - sed -i -e 's\"$@"\-style windows "$@"\;' /app/pt/packettracer /app/pt/linguist | ||
|
|
||
| sources: | ||
| - type: file | ||
| path: Packet_Tracer822_amd64_signed.deb | ||
| sha256: 6cd2b8891df92d2cad8b6fdc47480fc089de085c4f3fe95eb80d5450a2a7f72d | ||
| - type: file | ||
| path: packettracer.patch | ||
| - type: file | ||
| path: com.cisco.PacketTracer.appdata.xml | ||
| - type: file | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| @@ -5,5 +5,5 @@ | ||
| PTDIR=/opt/pt | ||
| export LD_LIBRARY_PATH=/opt/pt/bin | ||
| pushd /opt/pt/bin > /dev/null | ||
| -./PacketTracer "$@" > /dev/null 2>&1 | ||
| +./PacketTracer "$@" | ||
| popd > /dev/null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is neat, I didn't realise you could do this! It's probably better if you just remove this step and move this command to replace the existing
flatpak-builder buildcommand in step 5.