1 Star 0 Fork 13

阿翔与山海经/peony

forked from src-openEuler/peony 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-fix-share-error-of-peony.patch 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
peijiankang 提交于 2023-06-06 17:28 . fix share error of peony
From cd35751b5c23c0ed0b2e81026619fd2750ad19d9 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Tue, 6 Jun 2023 17:26:46 +0800
Subject: [PATCH] fix share error of peony
---
libpeony-qt/usershare-manager.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libpeony-qt/usershare-manager.cpp b/libpeony-qt/usershare-manager.cpp
index 48c719d..0849dc7 100644
--- a/libpeony-qt/usershare-manager.cpp
+++ b/libpeony-qt/usershare-manager.cpp
@@ -84,8 +84,9 @@ QString UserShareInfoManager::exectueCommand (QStringList& args, bool* retb /* o
proc.open();
// Check whether sambashare exists and contains the current user
- QProcess::execute ("bash pkexec /usr/bin/peony-share.sh", QStringList() << g_get_user_name () << sharedPath);
-
+ QString cmdtest = QString("pkexec /usr/bin/peony-share.sh %1 %2").arg(g_get_user_name()).arg(sharedPath);
+ QProcess::execute (cmdtest);
+
// Shared folder
args.prepend ("net");
proc.start("bash");
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/a-xiang-and-shanhaijing/peony.git
git@gitee.com:a-xiang-and-shanhaijing/peony.git
a-xiang-and-shanhaijing
peony
peony
master

搜索帮助