Skip to content

Instantly share code, notes, and snippets.

@hauthorn
Last active June 20, 2024 15:17
Show Gist options
  • Save hauthorn/d1da427b16133776bd8c65db802bc6ad to your computer and use it in GitHub Desktop.
Save hauthorn/d1da427b16133776bd8c65db802bc6ad to your computer and use it in GitHub Desktop.
Postman desktop entry
[Desktop Entry]
Categories=Development;
Comment=Supercharge your API workflow
Exec="/home/hauthorn/Programs/Postman/Postman"
Icon=/home/hauthorn/Programs/Postman/app/resources/app/assets/icon.png
Name=Postman
Terminal=false
Type=Application
Version=1.0

Update in 2024: You'll probably want to install via Snap, now that it's available and working fairly well.

@aeksco
Copy link

aeksco commented Oct 1, 2017

👍 Thanks for sharing!

@JochemKuijpers
Copy link

Thanks!

If you installed in /opt/Postman/ =>

[Desktop Entry]
Type=Application
Version=1.0
Name=Postman
Comment=Supercharge your API workflow
Icon=/opt/Postman/resources/app/assets/icon.png
Exec="/opt/Postman/Postman"

@hamidafghan
Copy link

@JoseCage
Copy link

Awesome... Thanks @JochemKuijpers

@iahvector
Copy link

iahvector commented Mar 29, 2019

I'm using version 6.7.4, the icon path changed to
/opt/Postman-linux-x64-6.7.4/Postman/app/resources/app/assets/icon.png

@juuuuuu
Copy link

juuuuuu commented Sep 1, 2020

Or use alacarte package and add a new element with the following parameters:
name: Postman
command: /opt/Postman/Postman
icon: /opt/Postman/app/resources/app/assets/icon.png

@ajinux
Copy link

ajinux commented Sep 24, 2020

where to put this file?

@hauthorn
Copy link
Author

where to put this file?

You can add this to ~/.local/share/applications if you are using Ubuntu @Ajithkumarsekar

@farrukh-taqveem
Copy link

The Complete Process with Latest Postman

  1. Check where your postman is installed, in my case it was /opt/Postman
  2. Create a postman.desktop file anywhere. touch postman.desktop

Paste the Following into that file (Adjust paths according to directory where your Postman is installed )

[Desktop Entry]
Type=Application
Version=1.0
Name=Postman
Comment=Supercharge your API workflow
Icon=/opt/Postman/app/resources/app/assets/icon.png
Exec="/opt/Postman/Postman"
Terminal=false

Copy this file to /home/.local/share/applications or ~/.local/share/applications

@luixal
Copy link

luixal commented Apr 22, 2021

Thanks!

@Msonko07
Copy link

Msonko07 commented Jul 7, 2021

root@mouhamedsonko-HP-ProBook-4540s:/home/mouhamedsonko/Bureau# cp postman.desktop /home/.local/share/applications
cp: impossible de créer le fichier standard '/home/.local/share/applications': Aucun fichier ou dossier de ce type
root@mouhamedsonko-HP-ProBook-4540s:/home/mouhamedsonko/Bureau# cd /home
root@mouhamedsonko-HP-ProBook-4540s:/home# ls
hero mouhamedsonko
root@mouhamedsonko-HP-ProBook-4540s:/home# ls -a
. .. hero mouhamedsonko
root@mouhamedsonko-HP-ProBook-4540s:/home# cd .local
bash: cd: .local: Aucun fichier ou dossier de ce type
root@mouhamedsonko-HP-ProBook-4540s:/home#

@hauthorn
Copy link
Author

hauthorn commented Jul 8, 2021

@Msonko07 you want to make sure the folder exists first. Are you using ubuntu?

I'm surprised it's not there, but maybe you are using a different distribution with a different folder structure.

You can try mkdir -p /home/.local/share/applications to create the folder, but I don't think that going to help much if you are using some other linux distribution.

@MamadouAlySy
Copy link

@RiansyahTohamba
Copy link

thanks for sharing. now, I can pin my postman on sidebar as favorite on my os-ubuntu.

@rodentskie
Copy link

[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=/opt/Postman/app/Postman %U
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;

@hauthorn
Copy link
Author

Hi @rodentskie Could you elaborate? What does the %U flag do?

@rodentskie
Copy link

Hi @rodentskie Could you elaborate? What does the %U flag do?

Please refer to this link.

@hauthorn
Copy link
Author

You'll probably want to install via Snap, now that it's available and working fairly well.

@anastabiti
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment