Great extension, thanks! i had a bit of trouble using it on my system: Ubuntu 19.10 with Remmina 143 (1.4.5+ppa202005242201.r3604445.d9a00d12~ubuntu19.10.1) from the Remmina Next PPA. I tweaked a few things to get it working again.
Basically:
org.remmina.Remmina.desktop seems to be the "proper" desktop file to use. There's no remmina.desktop on my system, there's org.remmina.Remmina.desktop which contains most of the info, and then a remmina-file.desktop (which seems to be more for file-open association purposes) and a remmina-gnome.desktop (which is kiosk mode??). So I reordered the IDs searched for at the start.
org.remmina.Remmina.desktop launches a wrapper script which takes a path as an argument but not with the -c flag
there are two different launch functions:
Shell.App.launch() which is really shell_app_launch() which can't take extra arguments, requires info about GPU affinity etc.
`Shell.App.app_info.launch() which is really g_app_info_launch() which does take file parameters. So I changed the invocation to that.
I also found that Shell.AppSystem.get_default().lookup_app() requires a .desktop extension, so I added that, and that icon creation was always "successful" even if it wasn't really, so I adjusted that logic.
The upshot of all this is that I don't quite know which of these are universally-applicable changes and what are system specific. But it does seem like the most recent version of Remmina at least is shipping with the desktop files above, and the other changes are Gnome Shell API related.
Thanks, yeah it is hard to know how much of the older compatibility code to keep around for previous versions of gnome-shell / remmina but this looks fine to me.
Great extension, thanks! i had a bit of trouble using it on my system: Ubuntu 19.10 with Remmina 143 (
1.4.5+ppa202005242201.r3604445.d9a00d12~ubuntu19.10.1
) from the Remmina Next PPA. I tweaked a few things to get it working again.Basically:
org.remmina.Remmina.desktop
seems to be the "proper" desktop file to use. There's noremmina.desktop
on my system, there'sorg.remmina.Remmina.desktop
which contains most of the info, and then aremmina-file.desktop
(which seems to be more for file-open association purposes) and aremmina-gnome.desktop
(which is kiosk mode??). So I reordered the IDs searched for at the start.org.remmina.Remmina.desktop
launches a wrapper script which takes a path as an argument but not with the-c
flagShell.App.launch()
which is reallyshell_app_launch()
which can't take extra arguments, requires info about GPU affinity etc.`Shell.App.app_info.launch()
which is reallyg_app_info_launch()
which does take file parameters. So I changed the invocation to that.I also found that
Shell.AppSystem.get_default().lookup_app()
requires a.desktop
extension, so I added that, and that icon creation was always "successful" even if it wasn't really, so I adjusted that logic.The upshot of all this is that I don't quite know which of these are universally-applicable changes and what are system specific. But it does seem like the most recent version of Remmina at least is shipping with the desktop files above, and the other changes are Gnome Shell API related.