项目作者: tassaron

项目描述 :
a GUI symbolic link editor
高级语言: Python
项目地址: git://github.com/tassaron/symlink-editor.git
创建时间: 2017-03-18T21:55:59Z
项目社区:https://github.com/tassaron/symlink-editor

开源协议:GNU General Public License v3.0

下载


Symlink Editor

A graphical Symlink Editor for Linux. Uses GTK 3 and Python 3. Tested on Ubuntu 18.04, 20.04, and 22.04, but it should work anywhere you can install GTK bindings for Python.

Screenshot

  1. usage: symlink-editor [-h] [-new] [-dir DIR] [-leaveopen] [path-to-edit]
  2. graphically manage symbolic links
  3. positional arguments:
  4. path-to-edit open an edit dialog for this path
  5. options:
  6. -h, --help show this help message and exit
  7. -new open a dialog to create a new link
  8. -dir DIR start in this path instead of the default
  9. -leaveopen leave main window open after editing

Features:

  • Notice broken symlinks easily (red highlighting)
  • Edit a symlink target or rename it
  • Copy/duplicate/move symlinks
  • Folder navigation (press icon in location bar to go up)
  • Use with “Open with…” in a file manager
  • Runnable as root with sudo (please be careful!)

Installation:

  1. If you’re not on default Ubuntu (Gnome Desktop), then run sudo apt install python3-gi to install Python support for GTK
  2. Recommended on Ubuntu: Create a folder called “bin” in your home folder and extract this code in that folder. This is a standard location for weird user-installed apps such as this.
  3. Edit the symlink-editor.desktop file to have a valid filepath to the symlink-editor file (and the icon you want)
  4. Copy/move the symlink-editor.desktop file to /usr/share/applications and your desktop environment’s app launcher should detect it
  5. If you can’t run the file, try marking it as executable (using properties window or chmod +x from terminal)

Development

  • Because the GTK widgets are defined in Python code in one giant file, the code is not readable by mortal eyes. But it is technically being maintained as of 2022. Pull requests are welcome, but beware :)