VirtualBox

Changeset 100255 in vbox for trunk


Ignore:
Timestamp:
Jun 23, 2023 8:49:37 AM (18 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Added some more X11 flavors for the URI list format. This is needed for X11-based applications, as those all need different tweaks and/or formatting in order to be recognized correctly. Sigh. bugref:9437

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-x11.h

    r100236 r100255  
    7474    SHCLX11FMT_HTML
    7575#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
     76    /** URI list as (UTF-8) text. */
    7677    , SHCLX11FMT_URI_LIST
    77 #endif
     78    /** URI list as a representation for copying files for GNOME-based applications. */
     79    , SHCLX11FMT_URI_LIST_GNOME_COPIED_FILES
     80    /** URI list as a representation for copying files for MATE-based applications. */
     81    , SHCLX11FMT_URI_LIST_MATE_COPIED_FILES
     82    /** URI list as representation for copying files for the Nautilus file manager (GNOME). */
     83    , SHCLX11FMT_URI_LIST_NAUTILUS_CLIPBOARD
     84    /** URI list as a representation for copying files for KDE-based applications.
     85     *  Also being used for Dolphin (KDE). */
     86    , SHCLX11FMT_URI_LIST_KDE_CUTSELECTION
     87#endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */
    7888} SHCLX11FMT;
    7989
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r100209 r100255  
    139139
    140140#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    141     { "text/uri-list",                      SHCLX11FMT_URI_LIST,    VBOX_SHCL_FMT_URI_LIST },
    142     { "x-special/gnome-copied-files",       SHCLX11FMT_URI_LIST,    VBOX_SHCL_FMT_URI_LIST },
    143     { "x-special/nautilus-clipboard",       SHCLX11FMT_URI_LIST,    VBOX_SHCL_FMT_URI_LIST },
    144     { "application/x-kde-cutselection",     SHCLX11FMT_URI_LIST,    VBOX_SHCL_FMT_URI_LIST },
     141    { "text/uri-list",                      SHCLX11FMT_URI_LIST,                    VBOX_SHCL_FMT_URI_LIST },
     142    { "x-special/gnome-copied-files",       SHCLX11FMT_URI_LIST_GNOME_COPIED_FILES, VBOX_SHCL_FMT_URI_LIST },
     143    { "x-special/mate-copied-files",        SHCLX11FMT_URI_LIST_MATE_COPIED_FILES,  VBOX_SHCL_FMT_URI_LIST },
     144    { "x-special/nautilus-clipboard",       SHCLX11FMT_URI_LIST_NAUTILUS_CLIPBOARD, VBOX_SHCL_FMT_URI_LIST },
     145    { "application/x-kde-cutselection",     SHCLX11FMT_URI_LIST_KDE_CUTSELECTION,   VBOX_SHCL_FMT_URI_LIST },
    145146    /** @todo Anything else we need to add here? */
    146147    /** @todo Add Wayland / Weston support. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette