How to add a program to rofi and the Rocket Menu


#1

I have an application, e.g. called Postman, which I’d like to access from the rofi -> drun Launcher and the Rocket Menu including the correct icon. How and where do I do that?
The program is placed at /opt.
Thank you.


#2

Create a postman.desktop file and copy it (as root) to /usr/share/applications/

As a template, you can use an exiting *.desktop file from the category (i.e use firefox.desktop if this is an internet application) you want it to show in.

You just need to edit the appropriate lines for name, exec, and icon. Since your program is installed in opt, I think you’ll need to use the full path, unless the installation made symlinks to a location jgmenu and rofi read by default.


#3

Thank you for the hint. I’m glad it worked. The file I produced looks like this:

[Desktop Entry]
Name=Postman
GenericName=API Development Client
Comment=API Development Client
Icon=/opt/Postman/resources/app/assets/icon.png
Exec=/opt/Postman/Postman %U
TryExec=/opt/Postman/Postman %U
Terminal=false
Type=Application
Categories=Development;

Though I don’t know if the %U Attribute for URLs is required. I think the description at freedesktop.org for the attributes is a little too thin.


#4

Good deal. Please mark the topic as solved.


#5

I marked the solution with that green Checkmark. Is is there not an automatism for setting a Question as solved? I don’t know where to click.


#6

Edit your first post and put [Solved] at the beginning of the title.

Checking the post that solved your issue lets others find it quicker and avoid having to read through an entire thread.

Edit - Although, it looks likes checking a post as a solution also adds a check to your thread title on the main page so there is an automation for that - I never really noticed that before, so it’s all good.


#7

is it possible to change the rocket icon of the start menu?


#8

Yes, open the config file for the polybar modules and for the jgmenu module you will see the line for the icon as well as the icon itself. You just need to pick an icon supported by the font being used.

Configuration files in ~/.config/jgmenu/


#9

For the actual rocket, edit your polybar config file (or tint2 if that’s what you’re using).

For everything else jgmenu related, use the pack @PackRat gave.