William Wennerström
81c02d1231
Switch from Travis CI to GitHub Actions
...
Travis have been slow and the macOS runner is outdated (and a bunch of
other recurring issues).
2020-12-17 15:09:25 +01:00
Michael Vetter
881b99c062
Remove not needed include
2020-12-16 14:46:01 +01:00
Michael Vetter
916b33b096
Merge pull request #1459 from wstrm/issue-1359
...
Restore old behavior when executing eval_password command
2020-12-15 16:38:24 +01:00
William Wennerström
0437fae1a8
Do not inherit stdin of main process
...
I see no reason to inherit the stdin, so let's have it disabled.
2020-12-15 15:48:51 +01:00
William Wennerström
695a1d3c8c
Use popen for eval_password (reintroduce old behavior)
...
Old commit that implemented the old behavior:
bc9e6b79cd
2020-12-15 15:45:16 +01:00
Michael Vetter
a07a4fb2b5
travis: disable osx
...
Too old I guess.
2020-12-15 15:22:35 +01:00
Michael Vetter
d4069f9c40
Merge pull request #1461 from kaffeekanne/fix-inputwindow
...
Set input window size to max window size
2020-12-12 08:21:55 +01:00
kaffeekanne
97dd1cb0c2
Set input window size to max window size
...
Input window size was one cell off, therefore terminal themes with background color set were rendered incorrectly, fixes #1458
2020-12-11 20:33:01 +01:00
Michael Vetter
8953002a2b
Merge pull request #1460 from kaffeekanne/master
...
Remove blank line after trackbar
2020-12-11 16:21:51 +01:00
kaffeekanne
4e999283f0
Remove blank line after trackbar
...
Remove added blank line after trackbar, introduced by 606c1e51e6
2020-12-11 16:10:26 +01:00
William Wennerström
32cfea4bd2
Refactor call_external
2020-12-11 15:51:01 +01:00
Michael Vetter
ddda72c2c4
Merge pull request #1456 from profanity-im/fix/1441-thememe
...
Fix color for win_print_outgoing()
2020-12-11 13:53:52 +01:00
Michael Vetter
63843342c3
Remove old TODO
...
It was added in f7fe87dd4e
when I rewrote
window functions to include more infos (not just char* but whole jid
struct I think).
The same todo was added to win_print_outgoing_muc() but removed in
f3d9de133e
.
This TODO should have been removed in
f3d9de133e
since there we added the myjid
parameter.
2020-12-11 13:47:40 +01:00
Michael Vetter
d5415b99a6
Fix color for win_print_outgoing()
...
Discovered by @aba-hollerer.
Mistake was introduced in b6b7dd5ad4
probably due to a wrong copy/paste.
First wasn't reproducible because I had `/receipts request on` and thus
win_print_outgoing_receipts() is used which has the correct
THEME_TEXT_ME.
Fixes https://github.com/profanity-im/profanity/issues/1441
2020-12-11 12:14:27 +01:00
Michael Vetter
46e938b638
Adapt profanity --help output
2020-12-11 11:56:45 +01:00
Michael Vetter
880641528a
Merge pull request #1455 from profanity-im/fix/1442-logging
...
Use whole path as logfile when defined via -f
2020-12-11 11:52:36 +01:00
Michael Vetter
0277ffe6ae
Only rotate logs if user didn't specify a log file
2020-12-11 11:33:34 +01:00
Michael Vetter
57666bcb77
Remove log_reinit()
...
Not needed anymore.
2020-12-11 11:18:24 +01:00
Michael Vetter
47a447bf73
Shared log file needs a restart
...
Tell user about this change.
2020-12-11 11:17:44 +01:00
Michael Vetter
a8990014e2
Use whole path as logfile when defined via -f
...
`profanity -f my` created ~/.local/share/profanity/logs/my.log`.
It would be nicer if one could define the actual path, so one can choose
another directory or even use /dev/null.
Fixes https://github.com/profanity-im/profanity/issues/1442
2020-12-11 10:40:10 +01:00
Michael Vetter
560a15e2a9
Merge pull request #1454 from wstrm/fix-missing-download-dir
...
Create download directory under XDG data path
2020-12-10 19:49:00 +01:00
William Wennerström
42a0518ff4
Fix deadlock on error before HTTP download has begun
2020-12-10 19:26:06 +01:00
William Wennerström
e70c64b74a
Create download directory under XDG data path
...
* If the downloads directory does not exist, create it.
* Change some cons_show to cons_show_error (because they log errors).
2020-12-10 19:04:32 +01:00
Michael Vetter
3b093553e1
Set default color for trackbar
...
Fix https://github.com/profanity-im/profanity/issues/1453
2020-12-10 15:07:55 +01:00
Michael Vetter
b12183aa1a
Remove empty line
2020-12-10 14:40:25 +01:00
Michael Vetter
3703879a1c
Remove not needed initialization in chatwin_new()
...
00dbc1ba7c
attempted to fix
https://github.com/profanity-im/profanity/issues/1449 .
Here we revert the part about initializing is_omemo in chatwin_new()
since this is done in win_create_chat() already.
The actual mistake was the wrong cast of the muc window which is fixed
by the same commit. The mistake was introduced in in 3370418d71
.
While being at it we also remove the is_ox initialization since this is
handled in win_create_chat()/win_create_muc() too.
2020-12-10 14:23:47 +01:00
Michael Vetter
a94378f206
Fix various typos
2020-12-10 09:24:32 +01:00
Michael Vetter
f0bfa69296
Merge pull request #1450 from wstrm/issue-1449
...
Cast chat/muc window to correct type and refactor cmd_sendfile
2020-12-10 09:17:12 +01:00
Michael Vetter
aa1f907125
Merge pull request #1451 from timgates42/bugfix_typo_certain
...
docs: fix simple typo, certian -> certain
2020-12-10 08:43:31 +01:00
Michael Vetter
150ce3520b
Merge pull request #1446 from profanity-im/fix/1439-chatlogs
...
Fix chatlogs for outgoing carbons
2020-12-10 08:41:57 +01:00
William Wennerström
a1486012d2
Fix build failure (unused variable)
2020-12-09 19:37:35 +01:00
Tim Gates
93480bed09
docs: fix simple typo, certian -> certain
...
There is a small typo in src/config/theme.c.
Should read `certain` rather than `certian`.
2020-12-10 05:25:37 +11:00
William Wennerström
073412b845
Remove stray +2 for path string in get_expanded_path
2020-12-09 19:24:15 +01:00
William Wennerström
00dbc1ba7c
Cast chat/muc window to correct type and refactor cmd_sendfile
...
Fixes #1449
2020-12-09 19:02:37 +01:00
Michael Vetter
b525befe67
Allocate memory for realpath in both cases
...
Forgot about that :(
2020-12-09 16:22:06 +01:00
Michael Vetter
ad7366994a
Simplify notify()
2020-12-09 11:01:16 +01:00
Michael Vetter
22b923018f
Log incoming carbons if they are no MUCPM
...
Regards https://github.com/profanity-im/profanity/pull/1446
2020-12-09 10:49:19 +01:00
Michael Vetter
606c1e51e6
Expand trackbar to whole line
...
Fix https://github.com/profanity-im/profanity/issues/1448
2020-12-09 10:21:32 +01:00
Michael Vetter
f10edd202f
Merge pull request #1447 from profanity-im/omemomediasharing-impr
...
omemo media sharing related polishing
2020-12-09 09:13:31 +01:00
Michael Vetter
5179b253c4
Purge omemo sendfile from config
...
https://github.com/profanity-im/profanity/pull/1375 added omemo media sharing support.
Thus the protection
(https://github.com/profanity-im/profanity/pull/1270 ) to sending files plainly in an omemo chat isn't
needed anymore and got removed.
Lets clean it from the config file.
2020-12-09 08:44:44 +01:00
Michael Vetter
55f09b6152
Use get_expanded_path() in cmd_senfile()
2020-12-09 08:44:44 +01:00
Michael Vetter
a2291b36c4
Expand ~ in unique_filename_from_url()
...
unique_filename_from_url() is used for `/url save`.
It doesn't recognize ~ by itself, we need to expand it first.
Mentioned in
https://github.com/profanity-im/profanity/pull/1375#pullrequestreview-547892462
2020-12-09 08:44:26 +01:00
Michael Vetter
7a319df6c8
Merge pull request #1375 from wstrm/feature/omemo-sendfile
...
Send and retrieve encrypted files when using OMEMO
2020-12-09 08:09:09 +01:00
William Wennerström
d7848e38bc
Remove scheme and filetype matching for url (save|open)
2020-12-08 20:01:17 +01:00
Michael Vetter
3e26364579
Fix chatlogs for outgoing carbons
...
Doesn't make sense to log if plain is not set in all cases.
Regards https://github.com/profanity-im/profanity/issues/1439
2020-12-08 12:26:36 +01:00
Michael Vetter
f023d56b02
Merge pull request #1445 from profanity-im/feature/moremans
...
Create cmd to generate man pages for prof commands
2020-12-07 20:36:24 +01:00
Michael Vetter
1bbdaec8e7
Print man page arguments bold
2020-12-07 17:25:22 +01:00
Michael Vetter
377a7b8e83
Generate date for manpage
2020-12-07 16:58:09 +01:00
William Wennerström
7f0165a912
Fix segfault for urlopen[1]
2020-12-07 16:46:44 +01:00
Michael Vetter
c833bd7fea
Break lines differently in example and synopsis section
2020-12-07 16:45:17 +01:00