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.
-
You will have the dot only when the application is already running.– vanadiumJan 23, 2020 at 8:30
-
1@AnkitRajDeo I think that is the default behaviour rite? i.stack.imgur.com/6A47U.jpg– PRATAPJan 23, 2020 at 8: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 RajDeoJan 24, 2020 at 5:47
-
1Should be there automatically on the icon representing your program. Difficult to help if you do not explain your case in more detail.– vanadiumJan 24, 2020 at 8:12
Add a comment
|
2 Answers
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.