diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-15 22:35:03 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-16 09:11:46 +0200 |
commit | acc107a44feadcaec5ecfc6fded97fb1a3421132 (patch) | |
tree | d7c17f75fb4d158a0665e70cb7900fed00aa8384 /Userland/copy.cpp | |
parent | de7827faf7decb93268c55da022721b6e2cf0904 (diff) | |
download | serenity-acc107a44feadcaec5ecfc6fded97fb1a3421132.zip |
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).
Diffstat (limited to 'Userland/copy.cpp')
-rw-r--r-- | Userland/copy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/copy.cpp b/Userland/copy.cpp index a14409029f..1a086df5df 100644 --- a/Userland/copy.cpp +++ b/Userland/copy.cpp @@ -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; |