Certain Linux VM environments can't communicate with password manager
Description
Some Linux environments seem to be unable to access the system's password manager despite Storage Explorer's password manager service being connected.
Repro Steps
- Create an Ubuntu Linux Hyper-V VM using Quick Create.
- Install Storage Explorer snap (not 1.38.0).
- Create a default keyring.
- Connect the Storage Explorer snap's password manager service.
- Launch Storage Explorer.
Actual
A message box saying the app failed to communicate with the password manager pops up.
Expected
The app launches normally.
Based on initial findings, it's possible in at least one case that there is a permissions issue with D-Bus. dmesg | grep DENIED output could indicate that communication with the D-Bus, which is necessry for interacting with the password manager, is getting blocked by AppArmor.
After extensive testing, here are our findings:
We were able to reproduce the issue only when creating a Hyper-V VM using the Quick Create feature and NOT installing system updates. The Quick Create image is several years old and lacks certain components and configurations needed for core22 to interact with the password manager service across D-Bus. Once system updates were installed, the Storage Explorer snap started to work as expected.
Keeping the OS updated is a common and expected practice, so this problem is very unlikely to happen, and therefore there's no reason for us to investigate further.
Others tried updating their system, but that did not resolve the issue. So we need to keep investigating.
I have the same problem starting from v1.39. v1.38 works fine. The issue exists on Azure Ubuntu VM Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-1036-azure x86_64)