can i access dd-file-manager variables from bash
Tofloor
poster avatar
dziban
deepin
2020-05-06 14:46
Author
Edited by dziban at 2020-5-6 06:49

hi, i'm writing contextual menu addons for deepin v20, and i was wondering if one could access variables from the deepin file manager like you could with nautilus, for instance whenever a script is called, Nautilus automatically sets a handful of variables that can be used in your scripts, example:


  • NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
    newline-delimited paths for selected files (only if local)

  • NAUTILUS_SCRIPT_SELECTED_URIS
    newline-delimited URIs for selected files

  • NAUTILUS_SCRIPT_CURRENT_URI
    current location

  • NAUTILUS_SCRIPT_WINDOW_GEOMETRY
    position and size of current window


Reply Favorite View the author
All Replies
icedragon
deepin
2020-05-06 18:34
#1
支持一下
Reply View the author