Git Product home page Git Product logo

pasthly's Introduction

PasthlY - A Python "Paste As Hard Link" Nautilus Extension

This project creates an Nautilus Extension to make avalible the possibility to instead of pasting a copy of files (<Control>V) in Nautilus (Gnome Files), create hard links to files (<Shift><Control>V) on the clipboard.

Dependencies

  • Python 3: 3.11.3
  • PyGObject: 3.24.38
  • gobject-introspection: 3.44.1
  • python3-nautilus: 1.2.3
  • PyYAML: 6.0

Known Issues

  • It (only) works with Nautilus 42 and python3-nautilus 1.2.3
    • GTK 3 (gi.required_version('Gtk', '3.0')) and Nautilus 3 (gi.required_version('Nautilus', '3.0'))
  • It won't work on Nautilus 43.beta or later.

Install

TMP_FILE=$(mktemp); curl 'https://raw.githubusercontent.com/theoamonteiro/pasthly/master/src/main/python/pasthly.py' 2> /dev/null > $TMP_FILE ; python $TMP_FILE --install ; rm -f $TMP_FILE

Setup on a Conda Environment

conda env create --name $NEW_CONDA_ENV_NAME --file environment.yml
pip install -r dependencies.txt

python3-nautilus

Since there is not a conda package, nor a pip package, it is necessary a little hack to get things runing:

  1. Install python3-nautilus package
  2. Create the links for files and folders
# CONDA_ENV_PATH=/var/opt/anaconda/$USER/envs/nautilus

sudo apt install -y python3-nautilus
ln -s /usr/lib/x86_64-linux-gnu/nautilus $CONDA_ENV_PATH/lib/
ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/nautilus-python.pc $CONDA_ENV_PATH/lib/pkgconfig/
ln -s /usr/lib/x86_64-linux-gnu/girepository-1.0/Nautilus-3.0.typelib $CONDA_ENV_PATH/lib/girepository-1.0/

CONDA_ENV_PATH is the location for the Anaconda enviroment, the commented definition is just an example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.