From a55744c5be2995753088a476aee4af1e3c6014ad Mon Sep 17 00:00:00 2001
From: meizhigang <meizhigang@kylinsec.com.cn>
Date: Fri, 21 Jul 2023 17:13:56 +0800
Subject: [PATCH] fix(keyboard):Fix ci build error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

 - 修复ci编译报错
---
 plugins/inputdevices/keyboard/keyboard-manager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/inputdevices/keyboard/keyboard-manager.cpp b/plugins/inputdevices/keyboard/keyboard-manager.cpp
index 734d310..40f24a1 100644
--- a/plugins/inputdevices/keyboard/keyboard-manager.cpp
+++ b/plugins/inputdevices/keyboard/keyboard-manager.cpp
@@ -505,7 +505,7 @@ bool KeyboardManager::set_layouts(const std::vector<Glib::ustring> &layouts)
     if (join_layouts.length() <= 0)
     {
         join_layouts = DEFAULT_LAYOUT LAYOUT_JOIN_CHAR;
-        join_variants = LAYOUT_JOIN_CHAR;
+        join_variants = std::string(LAYOUT_JOIN_CHAR);
     }
 
     auto cmdline = fmt::format("{0} -layout {1} -variant {2}", SETXKBMAP, join_layouts, join_variants);
-- 
2.27.0

