Plugins for the Thunar file browser
Project description
🖱️ 🛠️ Thunar Plugins
This Python package extends the Thunar file manager and provides a way for other Python packages to do the same without worrying about Thunar finding them.
✨ Features Added to Thunar
-
✅ a settings menu to en-/disable plugins added by this or other Python packages
-
🔗 creating links to a file or folder
-
☑️ Calculating various checksums of files
-
🗓️ planned: all features from
thunar-custom-actions
-
🔄 Basic Git Annex support (
sync
,get
,drop
)
📦 Installation
If you are on an Arch-based Linux, you can install the python-thunar-plugins-git
package from the AUR:
# using yay, you may of course use your favourite AUR installer
pacman -Syu yay
yay -Syu python-thunar-plugins-git
In this case you might only have to restart Thunar to see the new plugins:
thunar -q
Other Platforms: Installation from PyPI
☝️ Prerequisites
For these Thunar plugins to work, you will need to have installed:
- Thunar (obviously)
- thunarx-python
# Install this package from PyPI:
pip install thunar-plugins
# Install the latest development version:
pip install git+https://gitlab.com/nobodyinperson/thunar-plugins
# Install from the repository root
git clone https://gitlab.com/nobodyinperson/thunar-plugins
cd thunar-plugins
pip install .
If that fails, try
python3 -m pip install --user ...
instead of justpip install ...
⚡ Troubleshooting
- try
thunar -q
or log out and back in if the plugins aren't shown in Thunar - run
thunar -q
and thenTHUNARX_PYTHON_DEBUG=all THUNAR_PLUGINS_DEBUG=yes thunar
to debug - run
thunar-plugins activate
(orpython3 -m thunar_plugins activate
) to place the activator script (should be done upon installation) - run
thunar-plugins deactivate
to deactivate plugins
➕ Adding More Plugins
This thunar_plugins
package can act as a stepping stone for other packages
that add plugins to Thunar: The activator script loads all thunar_plugin
entry points provided by any installed Python package. So if another package
provides a Thunar plugin (e.g. a new context menu entry) with class
mypackage.mymodule.mysubmodule.MyThunarPlugin
, that package may adjust its
setup.cfg
like this and stop caring about how to tell Thunar where the plugin
can be found:
[options]
install_requires = thunar_plugins
[options.entry_points]
thunar_plugin =
my-thunar-plugin = mypackage.mymodule.mysubmodule:MyThunarPlugin
For proper display in the
thunar-plugins
settings dialog, every Python Thunar plugin class registered like this should also have a shortname
and a one-sentencedescription
string attribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file thunar-plugins-1.0.0.tar.gz
.
File metadata
- Download URL: thunar-plugins-1.0.0.tar.gz
- Upload date:
- Size: 32.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d098f2c1f59c572bc1546559476c36d2c5652d809c327306746c557bd9249e64 |
|
MD5 | 5d44449d421b365dfd7477e254f739e7 |
|
BLAKE2b-256 | 53eea545aa7727da659d216f28d0fb1fab0edd2e8d90ea6dddcd2065e6627159 |
File details
Details for the file thunar_plugins-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: thunar_plugins-1.0.0-py3-none-any.whl
- Upload date:
- Size: 36.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43ae440ed2f8b6cdf1e628c3db6609bd4fef36062d75036a47959be7a4240c24 |
|
MD5 | 9de8e64a67728d3b46fe861b09c9a0f0 |
|
BLAKE2b-256 | 90d56b583d05ecd1dd38f62b3331c0c94edb8a969293dffbee50502259981616 |