Website shortcut `.desktop` file - What is `--app-id` and `StartupWMClass`?

Hi there! This is my first post.

I want to make a bash script for creating a website shortcut for a URL.

If I save a website manually on Linux/Ubuntu, then a file with the following content is created. I have two questions about this:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=ChatGPT
Exec=/opt/brave.com/brave/brave-browser --profile-directory=Default --app-id=jckaldkomadaenmmgladeopgmfbahfjm
Icon=brave-jckaldkomadaenmmgladeopgmfbahfjm-Default
StartupWMClass=crx_jckaldkomadaenmmgladeopgmfbahfjm

How do I know what is inside of --app-id and what does StartupWMClass point to? - So that I can put this together myself in my script?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.