summaryrefslogtreecommitdiff
path: root/Userland/copy.cpp
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-05-15 22:35:03 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-16 09:11:46 +0200
commitacc107a44feadcaec5ecfc6fded97fb1a3421132 (patch)
treed7c17f75fb4d158a0665e70cb7900fed00aa8384 /Userland/copy.cpp
parentde7827faf7decb93268c55da022721b6e2cf0904 (diff)
downloadserenity-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.cpp4
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;