Postman

From bibbleWiki
Jump to navigation Jump to search

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 with highlighted extra bits

[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