Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Microsoft Teams is at the top of sort when searching for pycharm #1885

Closed
2 tasks done
f0ff886f opened this issue Aug 7, 2023 · 6 comments
Closed
2 tasks done
Labels

Comments

@f0ff886f
Copy link

f0ff886f commented Aug 7, 2023

Rofi version (rofi -v)

Version: 1.7.5

Configuration

https://gist.github.com/f0ff886f/bda841bbb955ab240795c8c69fa9f69a

Theme

https://gist.github.com/f0ff886f/3488cd3c8fa6d61300fc458204747979

Timing report

No response

Launch command

rofi drun -show drun -matching fuzzy -sort -sort-method fzf -theme Arc-Dark

Step to reproduce

Open rofi with rofi drun -show drun -matching fuzzy -sort -sort-method fzf -theme Arc-Dark
Type pycharm

Observe Microsoft Teams is at the top of the list

Expected behavior

Pycharm would be first on the list and likely the only thing on the list.

Actual behavior

Microsoft Teams shows up and it is really adamant about being everywhere.

It is the first result for pyc and it shows up if I just type subl too.

Additional information

Contents of ~/.local/share/applications/msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Default.desktop:

In case this has anything to do with it...

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Microsoft Teams
Exec=/opt/microsoft/msedge/microsoft-edge --profile-directory=Default --app-id=cifhbcnohmdccbgoicgdjpfamggdegmo "--app-url=https://teams.microsoft.com/?clientType=pwa"
Icon=msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Default
StartupWMClass=crx__cifhbcnohmdccbgoicgdjpfamggdegmo

Contents of /usr/local/applications/pycharm-professional.desktop:

[Desktop Entry]
Type=Application
Name=PyCharm Professional Edition
Icon=pycharm
Comment=Python IDE for Professional Developers.
Exec=pycharm %f
Terminal=false
Categories=Development;IDE;Python;
StartupNotify=true
StartupWMClass=jetbrains-pycharm

Using wayland display server protocol

  • No, I don't use the wayland display server protocol

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version
@f0ff886f f0ff886f added the bug label Aug 7, 2023
@f0ff886f f0ff886f changed the title [BUG] [BUG] Microsoft Teams is at the top of sort when searching for pycharm Aug 7, 2023
@f0ff886f
Copy link
Author

f0ff886f commented Aug 7, 2023

Sorry this is a literal photo, but my printscr button doesn't work when rofi is active:

image

@DaveDavenport
Copy link
Collaborator

DaveDavenport commented Aug 7, 2023

Its a side effect of the fuzzy matcher that is 'fuzzy'. Especially with randomized strings in the searched fields.
@MaskRay do you have any input on this?

Using the normal matcher this does not happen.

@DaveDavenport
Copy link
Collaborator

You can also tweak what it searches with -drun-match-fields.

@DaveDavenport
Copy link
Collaborator

Sorry this is a literal photo, but my printscr button doesn't work when rofi is active:

image

There is a screenshot keybinding in rofi. (Alt+Shift+s)

@f0ff886f
Copy link
Author

f0ff886f commented Aug 7, 2023

Oh! Thank you for that hint:

rofi drun -show drun -matching fuzzy -sort -sort-method fzf -theme Arc-Dark -drun-match-fields name

worked perfectly. And thank you for the screenshot hint!

@f0ff886f f0ff886f closed this as completed Aug 7, 2023
@github-actions
Copy link

github-actions bot commented Sep 8, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants