With desktop actions will soon coming to the panel (bug 16480), it would be useful to add some for thunar. My thoughts for some useful ones are home, computer, and trash.
Created attachment 9524 patch
Thanks for the patch ! How does that work / who will trigger these Desktop actions ? Will that result in entries in the menu when the .desktop file is right-clicked ?
Desktop action support shall land in the panel's launcher plugin, so right-clicking a launcher would expose them. In general desktop action support can more easily be added to other components' context menus with the new garcon method I added: https://git.xfce.org/xfce/garcon/commit/?id=05e54ee6567374d0b07880b2b635254f51190f94
(In reply to alexxcons from comment #2) > How does that work / who will trigger these Desktop actions ? Already functional in whisker menu when you right click on an entry like Firefox. You'll find entries for 'Open in New Window' and 'Open in New Private Window'
Will those entries be translated?
Yes
Created attachment 9537 patch suitable for name translations
(In reply to Jay Philips from comment #4) > (In reply to alexxcons from comment #2) > > How does that work / who will trigger these Desktop actions ? > > Already functional in whisker menu when you right click on an entry like > Firefox. You'll find entries for 'Open in New Window' and 'Open in New > Private Window' Just took a try for whisker menu master .. looks like I miss something: https://imgur.com/ttwkErG.png However if you can confirm that the thunar patch works for you, I would push it.
Created attachment 9544 final patch (In reply to alexxcons from comment #8) > However if you can confirm that the thunar patch works for you, I would push > it. Forgot one line. The patch will work when its built with translations.
Yousuf Philips referenced this bugreport in commit 3d14b834dfe6b9eac1679b41352d1585f034ef1c Add desktop actions for home, computer and trash (bug #16497) https://git.xfce.org/xfce/thunar/commit?id=3d14b834dfe6b9eac1679b41352d1585f034ef1c
ok, pushed it to master now. Thanks for the patch !