Recently, I have created a .desktop
file of Firefox application. When I run Firefox, I want to have a dot symbol under the icon of the Firefox when searching it using super key in GNOME just like we get on the default running application.
Asked
Active
Viewed 1,097 times
1

pomsky
- 68,507

Ankit RajDeo
- 33
- 1
- 6
-
You will have the dot only when the application is already running. – vanadium Jan 23 '20 at 08:30
-
1@AnkitRajDeo I think that is the default behaviour rite? https://i.stack.imgur.com/6A47U.jpg – PRATAP Jan 23 '20 at 08:33
-
@vanadium yes, you are right. But, it is only happening when application is installed through package manager. In case of some application, i have to create desktop file of that application so that i can open it through search. If that application is running, how can i make orange dot appear under the running application icon. – Ankit RajDeo Jan 24 '20 at 05:47
-
1Should be there automatically on the icon representing your program. Difficult to help if you do not explain your case in more detail. – vanadium Jan 24 '20 at 08:12
2 Answers
1
Most probably you don't have a correct StartupWMClass
entry in your manually created .desktop
launcher for the application. To add one, follow the steps below.
- Launch Firefox application in question.
- Run
xprop WM_CLASS
in a Terminal window. The cursor should turn into a crosshair. - Place the cursor over the opened Firefox window and click. You should get a
WM_CLASS
string for the application in Terminal. Open the manually created
.desktop
file in a text editor and add (or modify) the following lineStartupWMClass=OBTAINED-VALUE
In place of
OBTAINED-VALUE
put a value you got from step 3 without any quotes.- Save the
.desktop
file.

pomsky
- 68,507