Commit graph

111 commits

Author SHA1 Message Date
Oliver Blanthorn
ca566af246
Bump native version to 0.4.1 2023-11-20 13:30:22 +01:00
Oliver Blanthorn
43ab53477b
Bump native version for ARM Macs
See #3290, #4298, #4528
2023-06-16 17:35:12 +02:00
Oliver Blanthorn
a519675994
Update native version with PCRE fix 2023-04-08 16:40:20 +02:00
Oliver Blanthorn
1fb7236752
Update native messenger version
Fix yank to primary selection, adds support for
data URI saving, expand environment variables
on POSIX systems and other small fixes
2022-11-30 00:56:53 +01:00
Oliver Blanthorn
87bac6ecc4
Bump native messenger version 2021-09-28 20:55:43 +02:00
Rummskartoffel
dbe47296b7
Bump native messenger version 2021-04-22 21:34:05 +02:00
Rummskartoffel
6c013b947d
Fix #3435 and #3418
Previous native version behaved incorrectly
when trying to read an empty file.

0.3.4+ returns an empty string like the old
Python messenger
2021-03-05 22:57:30 +01:00
Oliver Blanthorn
f17e99d425
Bump native version 2021-03-02 14:17:38 +01:00
Oliver Blanthorn
57795b44ff
Bump native version 2021-02-28 15:50:07 +01:00
Oliver Blanthorn
970a49bfb5
Bump native version 2021-02-16 12:45:13 +01:00
Oliver Blanthorn
cb3fd41c89
Bump native version 2021-02-15 10:11:42 +01:00
Oliver Blanthorn
b856d593cc
Bump native version 2021-01-28 10:09:55 +01:00
Oliver Blanthorn
0fbac76de2
Bump native version to first public one
NB: this version does not yet exist
2021-01-16 22:24:40 +01:00
Oliver Blanthorn
e856e8f8d5
Bump native to latest pre-release tag again 2021-01-16 17:54:14 +01:00
Oliver Blanthorn
46e4df94a7
Bump native to latest pre-release tag 2021-01-16 17:16:53 +01:00
Oliver Blanthorn
ff38ceb71f
Mention deprecation of old messenger 2021-01-10 17:31:05 +01:00
Oliver Blanthorn
0f2562d1b9
Add native version file 2021-01-10 17:31:05 +01:00
Timothy Robert Bednarzyk
d6cced1222 Remove erroneous pluses from native installer 2020-11-21 23:39:46 +00:00
Timothy Robert Bednarzyk
7cdc90c5df Make native installer POSIX shell compliant 2020-11-21 23:16:02 +00:00
Joao Sa
0507bd4bbf Fix editor and rcfile encoding errors 2019-06-23 10:04:21 -03:00
Anton Vilhelm Ásgeirsson
4d7138abb5
Quickfix revert native write 2019-06-02 14:02:03 +01:00
Anton Vilhelm Ásgeirsson
5ddce6763b
Implement writerc native messenger call
This allows us to write the rc to OS. The only way to overwrite your current
rc file is to use mkt!, mktridactylrc! or mktridactylrc -f. mkt* commands
issued without the force/exclamation mark will not overwrite existing files.

Native messenger was updated to 0.1.11 and the mktridactylrc command is
unavailable in prior versions.

Fixed some random indentation errors that occurred in earlier commit.
2019-06-02 14:02:00 +01:00
Anton Vilhelm Ásgeirsson
bdc6a39180
Hook mktridactylrc up to native messenger
Still need to doublecheck subconfigs and fallbacks.
Also need to make sure that ! overwrites and error out if it isn't
supplied.
2019-06-02 14:01:45 +01:00
Oliver Blanthorn
ef9f02d0da
Make native{install,update} use corresponding tag for stable build
Beta builds will always use most recent messenger, which I think is probably fair;
old beta builds are unsupported.
2019-05-31 15:02:05 +01:00
Marvin Ewald
86324b60f2 Fix native messenger in nonewtab 2019-05-23 14:18:30 +02:00
glacambre
51f88f51c9
Fix errors found by LGTM
https://lgtm.com/projects/g/tridactyl/tridactyl/overview/
2019-04-17 07:18:18 +02:00
glacambre
78e662efef
Add shellcheck to travis 2019-03-24 18:28:41 +01:00
glacambre
a287f82c7a
native/install.sh: Warn user on failure to create manifest/messenger
https://github.com/tridactyl/tridactyl/issues/1099 happened because of a
misconfigured $XDG_DATA_DIR. This could have been caught by checking
that the manifest and the messenger actually exist. This commit adds
these checks.

Closes #1099.
2019-02-11 07:25:29 +01:00
glacambre
a56c185935
native_main.py: Add ".txt" suffix to temporary file names
Reasons explained in https://github.com/tridactyl/tridactyl/issues/1204

Closes #1204
2018-12-12 07:14:20 +01:00
glacambre
698fc6ad36
Add FileSystem completion 2018-10-13 20:48:47 +01:00
glacambre
113fd9ef80
Implement loading themes from disk.
This fixes https://github.com/cmcaine/tridactyl/issues/491.
2018-10-08 14:47:06 +02:00
glacambre
f461d85d2f Add :saveas ex command
This commit adds a `:saveas` ex command that behaves mostly like
pentadactyl's `saveas`. This requires adding a new `move` primitive to
the native messenger which behaves like `cp` (but isn't actually a call
to `cp` in order to stay compatible with windows). Then
native_background.ts uses that in order to move files when their
download is complete.
2018-09-28 07:33:00 +02:00
Alex Griffin
e8f216f441 Some small fixes to the native messenger installer 2018-09-06 10:02:31 -05:00
Roman Bogorodskiy
d80ac1a32b FreeBSD support for native install
Handle FreeBSD's OSTYPE (which has "freebsdX.Y" format). While here,
convert OSTYPE check to use 'case' instead of if's/elif's.

For unknown OSTYPE fallback to the default Linux location.
2018-08-25 20:33:31 +04:00
William G Hatch
e77e2a07fb use /usr/bin/env to find bash 2018-08-24 13:38:49 -06:00
Noah Birnel
50fd234da2 fix native install on opensuse - issue 941
check $OSTYPE against "linux" as well as "linux-gnu"
2018-08-23 14:05:07 -07:00
André Klausnitzer
5cb26902e9
fix invalid syntax for os.path.join(... 2018-07-30 19:54:34 +02:00
Oliver Blanthorn
24a568d5d7
Fix wrong directory 2018-07-30 17:57:08 +01:00
Oliver Blanthorn
dd94e5a493
Fix #671: support _ prefix for RC, improve docs 2018-07-30 17:56:05 +01:00
Oliver Blanthorn
47f90395eb
Rerename Windows native install script 2018-07-25 14:39:59 +01:00
Jeff King
fb0bfc0807 native: feed stdin of subprocess for "run"
There's currently no way to tell the native messenger to
provide a particular stdin to a "run" command. This leads to
awkward uses of here-docs, which in turn require hacks like
the one in 4a5dcd7557.

Instead, let's take the "content" field from the message
body and feed that to the command's stdin, which gives us a
more robust channel for passing arbitrary bytes.

Note that we have to switch to using subprocess.Popen's
communicate() method, which will make sure we don't deadlock
if the input or output exceeds a pipe buffer.

Note also that when no stdin is provided by the caller
(i.e., all current cases), we'll pass an empty string. This
actually fixes a minor bug. Because we didn't override the
command's stdin argument, it's hooked to the messenger's
stdin, which is the pipe coming from firefox. If the command
tries to read, it (and the messenger) will hang forever,
since firefox is waiting for the messenger to respond before
writing anything else.

I bumped the native messenger version. This is mostly
backwards compatible (existing callers just don't send any
stdin content at all). But a caller that wants to send stdin
should check to make sure we have at least 0.1.7.
2018-07-18 01:18:13 -04:00
Jeff King
a9fb9b65e9 native: use os.join instead of backslashes for debug path
This makes debugging work correctly on Linux.  Otherwise
you'll generally get EPERM as `/home/user\.tridactyl` is a
path in `/home`, which you likely don't have access to
write.
2018-07-18 01:03:12 -04:00
Babil Golam Sarwar
92e99aabbb
Add support to enforce minimum version for PowerShell 2018-07-13 08:46:09 +10:00
Babil Golam Sarwar
02c76e0f00
Fix PowerShell auto-close when native-messenger installation fails 2018-07-11 17:08:44 +10:00
Babil Golam Sarwar
be245d5dfa
Add TLS 1.1/1.2 support to Invoke-WebRequest 2018-07-11 11:37:34 +10:00
Vladimir Macko
2fc9eb0c54 Fix bug introduced in #733 2018-06-25 15:43:14 +02:00
Babil Golam Sarwar
54aca0fcf7
Merge branch 'master' of https://github.com/cmcaine/tridactyl 2018-06-25 07:42:31 +10:00
Babil Golam Sarwar
e0c61d53c5
Fixes Non-ASCII username issue reported in #731 2018-06-25 07:41:58 +10:00
Vladimir Macko
310f7b5900 Improve robustness of Get-PythonVersionStatus 2018-06-24 01:14:01 +02:00
Babil Golam Sarwar
683c3dc086 Fix native_main.py URL in win_install.ps1 2018-06-08 14:54:23 +10:00