Postman: Difference between revisions
Jump to navigation
Jump to search
Created page with "=Introduction= This is to store the issues with postman =Issue= Getting a token running v9 of the desktop application on Ubuntu 22.10 fails. I fails because of the snapd installation. It is unable to launch Postman on return of generating the token. There are a few bits I learn along the way with gnome and commands are here but not documented.<br><br> To get it to work you need to change the launch file. A trial in it's own right. This is located in. /var/lib/snapd/desk..." |
|||
Line 6: | Line 6: | ||
/var/lib/snapd/desktop/applications/postman_postman.desktop | /var/lib/snapd/desktop/applications/postman_postman.desktop | ||
The default installation does not specify a handler but here is the one I use | The default installation does not specify a handler but here is the one I use | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash" highlight="4,7,11"> | ||
[Desktop Entry] | [Desktop Entry] | ||
X-SnapInstanceName=postman | X-SnapInstanceName=postman | ||
Line 28: | Line 28: | ||
[Added Associations] | [Added Associations] | ||
.... | .... | ||
</syntaxhighlight> | |||
=And Some Commands= | |||
Hopefully this will help someone with google to track down their issues. | |||
<syntaxhighlight lang="bash"> | |||
# Show if an entry is present | |||
xdg-mime query default x-scheme-handler/postman | |||
# Shows XDG search for settings (note the /var/lib/snapd | |||
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop | |||
# Shows the opening of postman works | |||
xdg-open postman://www.fred.com | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 04:05, 25 October 2022
Introduction
This is to store the issues with postman
Issue
Getting a token running v9 of the desktop application on Ubuntu 22.10 fails. I fails because of the snapd installation. It is unable to launch Postman on return of generating the token. There are a few bits I learn along the way with gnome and commands are here but not documented.
To get it to work you need to change the launch file. A trial in it's own right. This is located in.
/var/lib/snapd/desktop/applications/postman_postman.desktop
The default installation does not specify a handler but here is the one I use
[Desktop Entry]
X-SnapInstanceName=postman
Name=Postman
#Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/postman_postman.desktop /snap/bin/postman
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/postman_postman.desktop /snap/bin/postman %U
Icon=/snap/postman/184/usr/share/postman/icons/icon_128x128.png
Categories=Development
MimeType=x-scheme-handler/postman
Terminal=false
Type=Application
StartupWMClass=Postman
I also changed the mime settings but no idea if it uses them in ~/.config/mimeapps.list
[Default Applications]
...
x-scheme-handler/postman=postman_postman.desktop
x-scheme-handler/Postman=postman_postman.desktop
[Added Associations]
....
And Some Commands
Hopefully this will help someone with google to track down their issues.
# Show if an entry is present
xdg-mime query default x-scheme-handler/postman
# Shows XDG search for settings (note the /var/lib/snapd
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
# Shows the opening of postman works
xdg-open postman://www.fred.com