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 956 times
1
pomsky
- 67,112
- 21
- 233
- 243
Ankit RajDeo
- 33
- 1
- 5
-
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_CLASSin 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_CLASSstring for the application in Terminal. Open the manually created
.desktopfile in a text editor and add (or modify) the following lineStartupWMClass=OBTAINED-VALUEIn place of
OBTAINED-VALUEput a value you got from step 3 without any quotes.- Save the
.desktopfile.
pomsky
- 67,112
- 21
- 233
- 243
