1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:28:12 +00:00

FileManager+LibGUI+Userland: Switch clipboard to MIME types

We will now actually use MIME types for clipboard. The default type is now
"text/plain" (instead of just "text").

This also fixes some issues in copy(1) and paste(1).
This commit is contained in:
Sergey Bugaev 2020-05-15 22:35:03 +03:00 committed by Andreas Kling
parent de7827faf7
commit acc107a44f
4 changed files with 27 additions and 19 deletions

View file

@ -36,12 +36,12 @@
struct Options {
String data;
StringView type { "text" };
StringView type;
};
Options parse_options(int argc, char* argv[])
{
const char* type = nullptr;
const char* type = "text/plain";
Vector<const char*> text;
Core::ArgsParser args_parser;