cmallwitz

Results 98 comments of cmallwitz

I started a replace project on https://github.com/cmallwitz/Financials-Extension - let me know what you think.

Maybe we should have a ZipProvider based on libarchive instead of Python zipfile. We would be able to handle tar, gz, and a lot more....

From Python perspective there is: https://pypi.org/project/libarchive/. The lib itself should be installed on all Gnome-based system as it is used for all archive support in Nautilus and GVFS https://wiki.gnome.org/Projects/gvfs (e.g....

I looked into file names with a " in it: in order to execute e.g. the default editor, we take 'gedit %U' and replace %U with a double-quoted file name...

PR #205 submitted. Christian On Tue, Mar 8, 2016 at 10:23 PM, Mladen Mijatov [email protected] wrote: > Yes @cmallwitz https://github.com/cmallwitz. That would be great. > > — > Reply to...

Some further information for files containing # or % opened using (right mouse click) context menu - open: this hits associations.py open_file() line 212 For example file name /home/user/foo#bar.txt this...

I completely agree with only encoding paths if the are URI complete with file:// - My fix is below and applicable in this situation: diff --git a/application/associations.py b/application/associations.py index 75857b2..03a434b...

This isn't pretty - I'm only suggesting changing one line - from: selection = map(lambda path: 'file://{0}'.format(path) if not path.startswith('file://') else path, selection) to: selection = map(lambda path: 'file://{0}'.format(urllib.pathname2url(path)) if...

Submitted PR #216 to fix issue - fix is using urllib for formatting and only if required.

This can be closed now.