pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
228 stars 47 forks source link

Launcher not showing apps in a recently used order #22

Closed raf-r closed 1 year ago

raf-r commented 3 years ago

(1) Issue/Bug Description:

After a recent update the launcher no longer shows app in a recently used order. The launcher now shows apps in a fixed order.

(2) Steps to reproduce (if you know):

Press super key or click in the dock launcher icon.

(3) Expected behavior:

Launcher shows apps being the most recently used app at the top.

(4) Distribution (run cat /etc/os-release):

NAME="Pop!_OS" VERSION="21.04" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 21.04" VERSION_ID="21.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=hirsute UBUNTU_CODENAME=hirsute LOGO=distributor-logo-pop-os

(5) Gnome Shell version:

Gnome 3.38.5

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):


  Installed: 1.1.0~1631643086~21.04~3215886
  Candidate: 1.1.0~1631643086~21.04~3215886
  Version table:
 *** 1.1.0~1631643086~21.04~3215886 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main amd64 Packages
       1001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main i386 Packages
        100 /var/lib/dpkg/status``` 

**(7) Where was Pop Shell installed from:**

Standard Pop!_OS 21.04 installation

**(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):**

Laptop primary display 1080p

**(9) Other Installed/Enabled Extensions:**

Audio switcher installed and enabled
Dash to dock installed but disabled

**(10) Other Notes:**

The issue started after an update (around 1 week ago). I have updated everything daily since the problem started and the issue has not been resolved yet.
mmstick commented 2 years ago

This would be resolved at the service layer of the launcher. We could store a BTree containing the hashes of every input that had a source selected, with a Vec containing the last N source hashes that were chosen for that query. Then elevate the most-often-selected source hash to the top.

isantop commented 2 years ago

A Frequrecency (sp? frequency+recently) type algorithm would be ideal IMO, where items that are used recently or frequently are sorted above those used neither, and items used both frequently and recently are sorted above items used either.