None
closed
nobody
None
2018-03-22
2018-03-04
Anonymous
No

Dear Maintainer,
I just wanted to add a rule for my window-manager to always keep the recoll snippets window in foreground and by that realized that the class is not set, which also causes an individual icon for each recoll window in my dock. Executing

xprop WM_CLASS WM_NAME WM_WINDOW_ROLE

proves that.
I took a quick look at the source-code but could not find the reason for it, since the applicationName is set properly (which should set the class).

Furthermore it would be nice to have the window titles in a form like
recoll – Snippets $PDF_NAME
in the snippets window or
recoll – Settings
in the settings window (where currently the path of the config file is shown).
Thanks for the good work so far and in advance for the coming (=
Best regards
spawn

Discussion

  • medoc
    medoc
    2018-03-19

    • status: open --> closed
    • milestone: -->
     
  • medoc
    medoc
    2018-03-19

    I thought that I had answered this, but somehow I can't find a trace so probably I did not, sorry. So:

     
    • Anonymous
      Anonymous
      2018-03-21

      Thanks for your answer (actually the first time an opensource-project's maintainer answers me ^^). The -name commandline-option is indeed working. However, your answer implies that you are not planning to set the WM_CLASS in the next version. Without the -name option xprop WM_CLASS WM_CLASS prints “not found”. With it, it prints e.g. WM_CLASS(STRING) = "test", "recoll". Most users of the recoll-GUI will not know the -name option (I have never heard of it although having written several (small) gui-applications in qt. Since it seems to be common sense that one application has the same window-class and because of the mentioned many equally-looking recoll-icons in docks like dockbarx, docky, the KDE-icon-taskbar or the ubuntu-unity-compiz-plugin, so you don't know which icon to click on, I believe, you should set the recoll-window-class by default. They are then grouped into one icon and you can then further select by window title or preview (KDE/compiz). What do you think?

       
  • medoc
    medoc
    2018-03-22

    I do agree with you, the problem being that I don't find a way to to it through the Qt API, and according to the following stackoverflow answer, there is none apart from the -name option. https://stackoverflow.com/a/11851378

    If you find a way to set it, I'm ready to do it :)

     

Cancel   Add attachment