TFA
TFA

Reputation: 81

Bundling and distributing nautilus-python extensions with application

I've written a python application and I use cx_freeze to freeze the scripts and create the executable. Then I'm making it into a single executable bin package using shell scripts.

Recently I developed a context menu extension using nautilus-python and would like to include the same with my application bundle. Obviously I can't place the .py file under under ~/.local/share/nautilus-python/extensions. I tried with just placing the .pyc file alone with executable bit enabled for the script which didn't work.

Any pointers reg this would be greatly helpful.

Upvotes: 0

Views: 380

Answers (1)

Jan Tojnar
Jan Tojnar

Reputation: 5524

cx_Freeze is fine for Windows or Mac but on Linux systems, applications are expected to be installed with package manager. Usually, distributions have designated people who will create the packages. Alternatively, you can choose distributions you want to support and create the packages for them yourself, or you can use service like OBS.

If you really want to provide a single executable for people to drop into a directory they have on PATH, you will need to provide the extension separately.

Please do not make the application install the extension on start-up, user should retain control over their computer. Or if you do that, please add a setup.py flag, so that distributions can easily disable it.

Upvotes: 0

Related Questions