如何编辑右键菜单
Tofloor
poster avatar
willow08
deepin
2020-07-23 19:43
Author
如何编辑右键菜单
Reply Favorite View the author
All Replies
avatar
haohu1193
deepin
2020-07-23 20:36
#1
  1. #!/bin/bash

  2. ORIGIN_DIR=$(dirname $(readlink -f "$0"))
  3. TARGET_DIR="/usr/share/deepin/dde-file-manager/oem-menuextensions"
  4. ORIGIN_FILE="root-file-manager.desktop"

  5. pkexec cp -f ${ORIGIN_DIR}/${ORIGIN_FILE} ${TARGET_DIR}

  6. if [[ -f "${TARGET_DIR}/${ORIGIN_FILE}" ]] ; then
  7.     echo "安装成功"
  8.     echo "即将打开一个新文件管理器窗口,请自行确认效果"
  9.     dde-open /
  10. else
  11.     echo "安装失败"
  12. fi
Copy the Code


这是添加右键[用管理员方式打开] 的SH内容,找找灵感?



root-file-manager(右键管理员菜单sh).zip

Reply View the author
avatar
haohu1193
deepin
2020-07-23 20:42
#2
论坛右上角搜索[右键菜单]...有112个帖子...找找有没有你需要的...

Reply View the author