Remmina - The GTK+ Remote Desktop Client  v1.4.33
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
File-Example.md
Go to the documentation of this file.
1 A file plugin handles drag&drop (called import & export) of files.
2 
3 ```python
4 import remmina
5 
6 class Pluginfile:
7  def __init__(self):
8  self.name = "Python file Plugin"
9  self.pref_label = "Preference Label"
10  self.type = "file"
11  self.description = "Drop something onto Remmina"
12  self.version = "1.0"
13  self.export_hints = ".ttf"
14 
15  def import_test_func(self, file):
16  # Test if we support this file.
17  return True
18 
19  def import_func(self, path):
20  # We promised to support the given file. Handle it:
21  file = remmina.file_new()
22  file.set_setting("name", path)
23  file.set_setting("protocol", "PyVNC")
24  # This file will appear as new entry in the list of stored connections in Remmina.
25  return file
26 
27  def export_test_func(self, file):
28  # Same as above but for export
29  return True
30 
31  def export_func(self, file):
32  # Same as above but for export
33  return None
34 
35 
36 myfilePlugin = Pluginfile()
37 remmina.register_plugin(myfilePlugin)
38 
39 ```