Age | Commit message (Collapse) | Author | Files | Lines |
|
Otherwise the validation will fail with a KeyError
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
|
|
Default behaviour of `xclip` is to copy into the `primary` selection.
Default behaviour of `wl-copy` is to copy into the `clipboard`.
This commit introduces a new config option called `clipboard_target`
that:
- allows disabling the copy to any clipboard entirely
- enforce copy to `primary` (i.e. for `wl-copy`)
- enforce copy to `clipboard` (i.e. for `xclip`)
|
|
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Uses the new 'minimum-id-length' post parameter to ensure minimum id
lengths for created file and multipaste urls.
Changes by Florian Pritz:
- Raise required API version to 2.2.0
- Rename CLI option to from `--min-url-length` to `--min-id-length` and
adjust documentation
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
`fb id://1234 --name test` would skip uploading the file since it is
already uploaded. With this change, the file is first downloaded and
then uploaded again to result in a new ID.
Setting the file name via --name does not work yet for this example
command and is not addressed by this commit.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
FileNotFoundError does not exist in python2. Also it returns an IOError
instead of OSError and IOError is an alias for OSError in python3 so
just use IOError here so it works for both versions.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
xclip forks a child that listens for clipboard requests and returns the
copied content when necessary. When used with a pipe (`echo test | fb |
cat`) this leads to cat blocking because cat's stdin is still open.
I'm not sure why that happens, but closing stdout and stderr for xclip
fixes the problem. This has also been done like this in the older shell
client.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This could be triggered by an empty file (really empty).
The assert is supposed to catch progress calls without a proper upload
total being set. We can easily use -1 rather than 0 for that.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This could be triggered by uploading /proc/cpuinfo
The code actually replaces an object with a string and breaks later
access to object variables.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
|
|
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
FBClient.makedirs already determines the dirname itself.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
FP: Reword commit message
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Not sure why I only wrote a comment for this one, but better commit
than discard it.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Just use one class for clarity.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|