【插件】dde-smart-dir 插件 (V20 & V15.11)【2020/06/20】
Tofloor
poster avatar
septemberhx
deepin
2020-06-06 23:51
Author
本帖最后由 septemberhx 于 2020-6-21 00:05 编辑

Edited by septemberhx at 2020-6-12 14:47

本帖最后由 septemberhx 于 2020-6-8 22:39 编辑

下载  https://github.com/SeptemberHX/dde-smart-dir安装:下载release,解压放到插件目录即可

https://wws.lanzous.com/b01bhzy1a
    密码:gvoy


类似 macOS 上 smart folder 的一个插件,当然功能做了相当多的简化。通过配置设定目录后,能够显示最近N个修改的文件以及监听的文件夹。
主要是解决日常使用中,截图后想找图片文件,又不想开文件管理器;或者是关闭QQ、微信后突然想打开一个它们下载的文件;或者快速访问指定文件夹
  • 双击打开文件
  • 支持文件拖拽
  • 右键打开文件夹
  • 文件夹列表

注意:如果监听的目录进行长时间连续,那么该插件会长时间占用较高CPU

--------------------------------------------------------------------------------
2020/06/20 更新 (0.4.0-rc1)
  • 支持子文件夹
  • 性能调整

--------------------------------------------------------------------------------

2020/06/09 更新 (0.3.0)
  • 添加目录列表,快速访问监听的目录
  • UI调整

----------------------

2020/06/08 更新 (0.2.2)
  • 更换图标
  • 新分支:扇形模式【由于是通过坐标计算画出来的,坐标轴的四个象限有差异,所以这里仅仅是按 top-panel 进行设计】
----------------------

2020/06/07 更新 (0.2.1)
  • 显示文件路径、最后修改时间
  • 添加每页显示数量配置
  • 构建缓存以降低 CPU 使用率
  • bug fux
  • 15.11 支持

Reply Favorite View the author
All Replies
2 / 4
To page
lbygljq
deepin
2020-06-07 04:06
#21
这个插件UOS20个人版可以用,Deepin15.11不行。
Reply View the author
lbygljq
deepin
2020-06-07 04:21
#22
https://bbs.deepin.org/post/195623
包已经做好了,在这里https://bbs.deepin.org/post/195632#

这个能不能做个适用于Deepin15.11版本的?
Reply View the author
septemberhx
deepin
2020-06-07 04:31
#23
https://bbs.deepin.org/post/195623
这个能不能做个适用于Deepin15.11版本的?

理论上代码没问题,只是需要重新编译一遍。
我手上没有 15.11 的机器,所以没办法给 15.11 编译。
你可以尝试自己编译试试
  1. git clone https://github.com/SeptemberHX/dde-smart-dir.git
  2. cd dde-smart-dir
  3. mkdir build
  4. cd build
  5. cmake ..
  6. make
Copy the Code


顺利的话,就能在 build 目录生成 .so 文件
Reply View the author
Comments
lbygljq
2020-06-07 04:45
15.11版的cmake版本太低
神末shenmo
Moderator
Spark-App
2020-06-07 04:39
#24
https://bbs.deepin.org/post/195623
这个能不能做个适用于Deepin15.11版本的?

编译好了把so文件发出来我弄个15.11版本的
我记得在依赖里写明了不支持15.11
Reply View the author
Comments
lbygljq
2020-06-07 04:43
15.11版的cmake版本太低
septemberhx
deepin
2020-06-07 05:08
#25
https://bbs.deepin.org/post/195623
这个能不能做个适用于Deepin15.11版本的?

那就改一下 CMakeLists.txt 里的 cmake_minimum_required(VERSION 3.11)。
把 3.11 改成你的版本。我应该没有用到cmake的一些新特性。能编译过的话,记得提交一下修改
Reply View the author
139******14
deepin
2020-06-07 05:35
#26
网速插件可以分享一下吗
Reply View the author
lbygljq
deepin
2020-06-07 05:45
#27
https://bbs.deepin.org/post/195623
那就改一下 CMakeLists.txt 里的 cmake_minimum_required(VERSION 3.11)。
把 3.11 改成你的版本。我应该 ...
  1. $ cmake ..
  2. -- The C compiler identification is GNU 6.3.0
  3. -- The CXX compiler identification is GNU 6.3.0
  4. -- Check for working C compiler: /usr/bin/cc
  5. -- Check for working C compiler: /usr/bin/cc -- works
  6. -- Detecting C compiler ABI info
  7. -- Detecting C compiler ABI info - done
  8. -- Detecting C compile features
  9. -- Detecting C compile features - done
  10. -- Check for working CXX compiler: /usr/bin/c++
  11. -- Check for working CXX compiler: /usr/bin/c++ -- works
  12. -- Detecting CXX compiler ABI info
  13. -- Detecting CXX compiler ABI info - done
  14. -- Detecting CXX compile features
  15. -- Detecting CXX compile features - done
  16. CMake Error at CMakeLists.txt:22 (find_package):
  17.   By not providing "FindDtkWidget.cmake" in CMAKE_MODULE_PATH this project
  18.   has asked CMake to find a package configuration file provided by
  19.   "DtkWidget", but CMake did not find one.

  20.   Could not find a package configuration file provided by "DtkWidget" with
  21.   any of the following names:

  22.     DtkWidgetConfig.cmake
  23.     dtkwidget-config.cmake

  24.   Add the installation prefix of "DtkWidget" to CMAKE_PREFIX_PATH or set
  25.   "DtkWidget_DIR" to a directory containing one of the above files.  If
  26.   "DtkWidget" provides a separate development package or SDK, be sure it has
  27.   been installed.


  28. -- Configuring incomplete, errors occurred!
Copy the Code
Reply View the author
lbygljq
deepin
2020-06-07 05:59
#28
在Deepin15.11系统上应该是QT的版本也不够,缺少依赖吧
Reply View the author
septemberhx
deepin
2020-06-07 06:03
#29
本帖最后由 septemberhx 于 2020-6-6 22:08 编辑
https://bbs.deepin.org/post/195623
在Deepin15.11系统上应该是QT的版本也不够,缺少依赖吧

apt search dtkwidget
结果应该有一个 libdtkwidget-dev 类似的东西,装上就行

还有 dde-dock-dev  cmake  qtbase5-dev-tools  pkg-config  qttools5-dev-tools
Reply View the author
septemberhx
deepin
2020-06-07 06:06
#30
Reply View the author
lbygljq
deepin
2020-06-07 15:55
#31
https://bbs.deepin.org/post/195623
apt search dtkwidget
结果应该有一个 libdtkwidget-dev 类似的东西,装上就行

cmake过了,但是make出错:
  1. $ make
  2. Scanning dependencies of target dde-smart-dir_autogen
  3. [ 10%] Automatic MOC, UIC and RCC for target dde-smart-dir
  4. Generating MOC source EWIEGA46WW/moc_SmartDirPlugin.cpp
  5. Generating MOC source EWIEGA46WW/moc_SmartDirPluginWidget.cpp
  6. Generating MOC source EWIEGA46WW/moc_SmartDirSettings.cpp
  7. Generating MOC source IMAN36LHMA/moc_smartdirsettingwidget.cpp
  8. Generating MOC source IMAN36LHMA/moc_smartdirwidget.cpp
  9. Generating MOC compilation mocs_compilation.cpp
  10. Generating UIC header include/ui_smartdirsettingwidget.h
  11. Generating RCC source EWIEGA46WW/qrc_resource.cpp
  12. [ 10%] Built target dde-smart-dir_autogen
  13. Scanning dependencies of target dde-smart-dir
  14. [ 20%] Building CXX object CMakeFiles/dde-smart-dir.dir/SmartDirPlugin.cpp.o
  15. [ 30%] Building CXX object CMakeFiles/dde-smart-dir.dir/SmartDirPluginWidget.cpp.o
  16. /home/.SourceCodes/DDE-Docker-Plugins/dde-smart-dir/SmartDirPluginWidget.cpp:7:18: fatal error: DStyle: 没有那个文件或目录
  17. #include
  18.                   ^
  19. compilation terminated.
  20. CMakeFiles/dde-smart-dir.dir/build.make:86: recipe for target 'CMakeFiles/dde-smart-dir.dir/SmartDirPluginWidget.cpp.o' failed
  21. make[2]: *** [CMakeFiles/dde-smart-dir.dir/SmartDirPluginWidget.cpp.o] Error 1
  22. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/dde-smart-dir.dir/all' failed
  23. make[1]: *** [CMakeFiles/dde-smart-dir.dir/all] Error 2
  24. Makefile:83: recipe for target 'all' failed
  25. make: *** [all] Error 2
Copy the Code
Reply View the author
septemberhx
deepin
2020-06-07 18:19
#32
https://bbs.deepin.org/post/195623
cmake过了,但是make出错:

DStyle 是 v20 独有的应该,不过我发现并不需要用到它,所以改了代码。拉取一下最新的代码再试一下。
Reply View the author
lbygljq
deepin
2020-06-07 19:01
#33
本帖最后由 lbygljq 于 2020-6-7 11:07 编辑
https://bbs.deepin.org/post/195623
DStyle 是 v20 独有的应该,不过我发现并不需要用到它,所以改了代码。拉取一下最新的代码再试一下。 ...
  1. dde-smart-dir/SmartDirPluginWidget.cpp:7:33: fatal error: DGuiApplicationHelper: 没有那个文件或目录
  2. #include
  3.                                  ^
  4. compilation terminated.
  5. CMakeFiles/dde-smart-dir.dir/build.make:86: recipe for target 'CMakeFiles/dde-smart-dir.dir/SmartDirPluginWidget.cpp.o' failed
  6. make[2]: *** [CMakeFiles/dde-smart-dir.dir/SmartDirPluginWidget.cpp.o] Error 1
  7. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/dde-smart-dir.dir/all' failed
  8. make[1]: *** [CMakeFiles/dde-smart-dir.dir/all] Error 2
  9. Makefile:83: recipe for target 'all' failed
  10. make: *** [all] Error 2
Copy the Code

另外,deepin15.11中的cmake版本号上3.9.5,可以改下。
Reply View the author
Rubbish
deepin
2020-06-07 19:01
#34
https://bbs.deepin.org/post/195623
DStyle 是 v20 独有的应该,不过我发现并不需要用到它,所以改了代码。拉取一下最新的代码再试一下。 ...

我15.11报错缺少 ,这个头文件需要安装什么包啊
Reply View the author
septemberhx
deepin
2020-06-07 19:06
#35

惊了,这个也是无用的。我已经删掉了,更新代码试试
Reply View the author
septemberhx
deepin
2020-06-07 19:06
#36
https://bbs.deepin.org/post/195623
我15.11报错缺少 ,这个头文件需要安装什么包啊

惊了,这个也是无用的。我已经删掉了,更新代码试试
Reply View the author
Comments
zhongyic
2020-06-07 19:10
不是吧,获取PLUGIN_SIZE啥的需要这个
lbygljq
deepin
2020-06-07 19:12
#37
本帖最后由 lbygljq 于 2020-6-7 11:14 编辑
https://bbs.deepin.org/post/195623
惊了,这个也是无用的。我已经删掉了,更新代码试试

cmake版本号可以改成3.9。这次错误:
  1. SmartDirPluginWidget.cpp:14:26: error: ‘PLUGIN_BACKGROUND_MIN_SIZE’ was not declared in this scope
  2.      this->setMinimumSize(PLUGIN_BACKGROUND_MIN_SIZE, PLUGIN_BACKGROUND_MIN_SIZE);
  3.                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4. /home/.SourceCodes/DDE-Docker-Plugins/dde-smart-dir/SmartDirPluginWidget.cpp: In member function ‘void SmartDirPluginWidget::updateIcon()’:
  5. /home/.SourceCodes/DDE-Docker-Plugins/dde-smart-dir/SmartDirPluginWidget.cpp:30:16: error: ‘PLUGIN_ICON_MIN_SIZE’ was not declared in this scope
  6.      if (size < PLUGIN_ICON_MIN_SIZE)
  7.                 ^~~~~~~~~~~~~~~~~~~~
  8. /home/.SourceCodes/DDE-Docker-Plugins/dde-smart-dir/SmartDirPluginWidget.cpp:32:16: error: ‘PLUGIN_BACKGROUND_MAX_SIZE’ was not declared in this scope
  9.      if (size > PLUGIN_BACKGROUND_MAX_SIZE) {
  10.                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
  11. CMakeFiles/dde-smart-dir.dir/build.make:86: recipe for target 'CMakeFiles/dde-smart-dir.dir/SmartDirPluginWidget.cpp.o' failed
  12. make[2]: *** [CMakeFiles/dde-smart-dir.dir/SmartDirPluginWidget.cpp.o] Error 1
  13. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/dde-smart-dir.dir/all' failed
  14. make[1]: *** [CMakeFiles/dde-smart-dir.dir/all] Error 2
  15. Makefile:83: recipe for target 'all' failed
  16. make: *** [all] Error 2
Copy the Code

Reply View the author
咿呀
deepin beta test group
2020-06-07 19:57
#38
楼主,你能分享一下你使用的时间和网速插件吗?
Reply View the author
septemberhx
deepin
2020-06-07 20:31
#39
https://bbs.deepin.org/post/195623
cmake版本号可以改成3.9。这次错误:

emmm 我装个虚拟机编译吧。。。
Reply View the author
septemberhx
deepin
2020-06-07 20:33
#40
https://bbs.deepin.org/post/195623
楼主,你能分享一下你使用的时间和网速插件吗?

https://github.com/SeptemberHX/dde-istate-menus.git
Reply View the author
2 / 4
To page