Bug 413974

Summary: Open containing folder action doesn't open default file manager
Product: [Plasma] plasmashell Reporter: Jan Przybylak <jplx256>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, fabian, kde, kde, plasma-bugs
Priority: NOR    
Version: 5.17.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jan Przybylak 2019-11-09 13:35:21 UTC
SUMMARY
My default file manager is Dolphin, but I also have Thunar installed. When I take a screenshot and then use the context menu in the notification popup (the 3 bars) to open my screenshots folder, it opens in Thunar instead of Dolphin. I tried changing the default file manager to something else and back to Dolphin, which didn't work.


I tested `xdg-open [Path to my screenshots folder]` and it correctly opened Dolphin, so the problem must be on Spectacle's side.

STEPS TO REPRODUCE
1. Take screenshot
2. In the notification, click on context button
3. Select "Open folder with this content" (the actual string might be slightly different since I had to translate it from German)
 

OBSERVED RESULT
Thunar opens, despite not being the default file manager

EXPECTED RESULT
Dolphin opens, the default file manager

SOFTWARE/OS VERSIONS
Linux Kernel: 5.3.8-arch1-1
KDE Plasma Version: 5.17.1
KDE Frameworks Version: 5.63
Qt Version: 5.13.2
Comment 1 David Redondo 2019-11-09 13:42:15 UTC
Hmm I cannot reproduce it after installing Thunar.
Moving this to notifications since the menu comes from there.
Comment 2 Fabian Vogt 2019-11-09 14:21:17 UTC
It uses org.freedesktop.FileManager1 on DBus. I assume both Dolphin and Thunar register that service. Does it work if you kill thunar and run /usr/bin/dolphin --daemon before?
Comment 3 Jan Przybylak 2019-11-09 14:38:28 UTC
That works. After killing Thunar and executing /usr/bin/dolphin --daemon in krunner, Spectacle correctly opens Dolphin
Comment 4 Patrick Silva 2019-11-10 14:57:57 UTC
it seems duplicate of bug 397953
Comment 5 Jan Przybylak 2019-11-10 14:59:38 UTC
I'm not familiar with how it works under the hood, but if it indeed uses KIO::highlightInFileManager, I'd agree with you.
Comment 6 David Edmundson 2019-11-10 16:48:35 UTC

*** This bug has been marked as a duplicate of bug 397953 ***