Chrome Version: ToT plus my in-flight changes
OS: ChromeOS
What steps will reproduce the problem?
(1) Go to crostini terminal
(2) Install eclipse via 'sudo apt-get install eclipse'
(3) Right-click on eclipse icon in launcher
What is the expected result?
"Uninstall" is one of the right-click menu options
What happens instead?
"Uninstall" generally does not show up until something refreshes the list of Linux app icons.
For instance, running 'sudo touch /usr/share/applications/eclipse.desktop' causes the uninstall option to appear.
I believe this is because the desktop file is created before 'sudo apt-get install eclipse' is finished, so when SearchFiles looks for an owner for the eclipse.desktop file, it doesn't find the in-progress eclipse package. Thus, there doesn't appear to be an owning package, so we don't make an uninstall menu option.
We may want to have HostNotifier::SendAppListToHost() wait until the package install lock is free before running.
Alternately, we can just have SendAppListToHost() run on a regular schedule, but this increases our resource usage.
Comment 1 by iby@chromium.org
, Oct 23