Michael Vetter
a0e1dfbb87
cmd_funcs.c: Remove not needed variable
2020-07-02 15:00:52 +02:00
Michael Vetter
f8ff93234e
log.c: Use gchar* instead of GString for mainlogfile
2020-07-02 15:00:09 +02:00
Michael Vetter
f4159d8168
get_mentions() Use gchar instead of char
2020-07-02 12:17:23 +02:00
Michael Vetter
e5ac12afa6
Remove prefs_free_string()
...
It just does a free.
Related to b580b9ef11
2020-07-02 11:34:12 +02:00
Michael Vetter
9774b0c550
Merge pull request #1374 from profanity-im/revampUrlopen
...
Rework /url and /executable for filetypes
2020-07-02 11:26:18 +02:00
Michael Vetter
86cd33405e
Add note that /executable needs more work
2020-07-02 11:18:37 +02:00
Michael Vetter
322caf877e
Transform url.open.cmd to new default scheme
...
Additionally to:
7de83217c4
1e2a288d80
2020-07-02 11:14:27 +02:00
Michael Vetter
6ada720e18
executable: actually take the user set default if a certain scheme is
...
not found
2020-07-02 10:59:45 +02:00
Michael Vetter
7de83217c4
executable: Use DEF instead of * as default
...
So far:
```
/executable urlsave html "test %u" results in url.save.cmd[html]=test %u
/executable urlsave * "test %u" results in nothing.
```
Probably due to limitation in .ini file format.
2020-07-02 10:58:54 +02:00
Michael Vetter
59f5b81b85
cmd_url_*(): use gchar instead of char
2020-07-02 10:58:31 +02:00
Michael Vetter
1e2a288d80
Use correct format when transforming old urlopen.cmd
...
Additionally to ec7e635e75
.
In the earlier commit I just setted the test value ignoring the real
format.
Now we correctly transform:
```
[logging]
urlopen.cmd=xdg-open
```
into:
```
[executables]
url.open.cmd=false;xdg-open %u;
```
2020-07-02 10:22:18 +02:00
Michael Vetter
b45384902d
cmd_url_open(): fix memleak
2020-07-02 10:10:53 +02:00
Pierre Mazière
274e695320
use '*' to set a default executable
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-07-02 09:52:43 +02:00
Pierre Mazière
e96678e6a5
fix examples for /executable
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-07-02 09:52:28 +02:00
Michael Vetter
3af5f33489
0.9.5
2020-07-01 18:47:07 +02:00
Michael Vetter
d4eeb9a3eb
Update 0.9.5 changelog
2020-07-01 18:41:46 +02:00
Michael Vetter
92cba92c5d
Add default value for titlebar.scrolled
...
Fix https://github.com/profanity-im/profanity/issues/1380
2020-07-01 18:37:35 +02:00
Michael Vetter
a92942a4b7
otr.c: Simplify freeing
...
free(NULL) is a noop.
2020-07-01 17:09:03 +02:00
Michael Vetter
b96e25d9c3
Fix overlooking variable
...
Fix mistake where I overlooked some variables in 1224aa414e
.
2020-07-01 17:07:42 +02:00
Michael Vetter
2fc5a2ee54
cmd_url_*(): remove NULLing when not needed
2020-07-01 17:00:11 +02:00
Michael Vetter
780ee74177
cmd_executable(): Check arg lengths
2020-07-01 16:10:27 +02:00
Michael Vetter
8be1e44cea
Adjust /executable
test to be more precise
2020-07-01 15:42:26 +02:00
Michael Vetter
ec7e635e75
Move url/avatar commands from logging to exectuables section
...
c56d530b67
by peetah moves:
urlopen.cmd from the 'logging' to a new 'executables' section in profrc
avatar.cmd from the 'logging' to a new 'executables' section in profrc
We need to adapt this so that users don't have to set the setting again
themselves.
2020-07-01 15:29:57 +02:00
Michael Vetter
2b5160a351
console.c: Use prefs_free_string()
...
f9961677aa
replaces prefs_free_string()
with g_free(). Both is correct but lets still use this.
2020-07-01 14:50:07 +02:00
Michael Vetter
b580b9ef11
prefs_free_string() doesnt need to check if pref is NULL
...
g_free(NULL); is noop.
2020-07-01 14:42:35 +02:00
Michael Vetter
9b514ad3d6
files.c: use const char *const where appropriate
2020-07-01 10:07:42 +02:00
Michael Vetter
1224aa414e
Use files_get_account_data_path instead of duplicate code
...
We often had a use case where we want the account specific data dir.
Let's create a function for this instead of doing it by hand each time.
2020-07-01 10:05:45 +02:00
Stefan Kropp
7d6ef8f4c8
Initialize is_ox in win_create_chat()
...
Fixes an issue where messages are displayed as OX when they are not.
2020-07-01 09:23:23 +02:00
Michael Vetter
8de6a7bfb0
And ifdefs around new OX functions
...
Fix for some build cases introduced in 2c94ee5a88
Fix https://github.com/profanity-im/profanity/issues/1376
2020-06-30 11:10:27 +02:00
Michael Vetter
60f4098846
Add OX test stubs
2020-06-29 21:21:16 +02:00
Michael Vetter
31ec640d05
Fix omemo otr case
...
Fix 3afd854dc8
2020-06-29 19:13:56 +02:00
DebXWoody
2c94ee5a88
Feature request - XEP-0373: OpenPGP for XMPP (OX)
...
Basic implementation of XEP-0373: OpenPGP for XMPP.
https://xmpp.org/extensions/xep-0373.html
Command /ox
Issue: #1331
2020-06-29 19:05:41 +02:00
Michael Vetter
3afd854dc8
cmd_funcs: fix omemo case
...
Small mistake introduced in b7f959bab4
.
2020-06-29 16:29:53 +02:00
Michael Vetter
2f4b1734e9
Dont allow starting a PGP session while in an OMEMO session
2020-06-29 15:14:55 +02:00
Michael Vetter
6bb00da517
Merge pull request #1363 from DebXWoody/definemess
...
Clean-up task: clean up feature defines
2020-06-29 15:06:48 +02:00
Pierre Mazière
233494d01e
Display a message acknowledging file saving success
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:34 +02:00
Pierre Mazière
f9961677aa
Display default value for /url associated commands
...
The display of commands associated with specific file
types and protocols will need to be implemented later,
but this requires to use private data of the GKeyFile
structure, which can be a maintainability issue on the
long term.
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:20 +02:00
Pierre Mazière
bcea9c863b
Add /url autocompletion
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:20 +02:00
Pierre Mazière
c56d530b67
Replace /urlopen with /url and adapt /executable
...
/urlopen is replaced by /url with the following sub commands:
/url open <url>
/url save <url> [<path>]
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:04 +02:00
Pierre Mazière
7e652f4ca0
Add string and string list preferences with option
...
Where GKeyFile usually use the pref[locale] format to define
locale specific translated data, it is here hijacked to be used
as pref[option] in order to specialize a preference according
to an option:
open.url.cmd[pdf] = pdf-viewer
open.url.cmd[jpg] = image-viewer
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:04 +02:00
Pierre Mazière
96c877de80
Refactor cmd_urlopen
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:01 +02:00
Pierre Mazière
64eb11fbaf
Add aesgcm to urls grabber
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:02:56 +02:00
Michael Vetter
906c020155
Start new cycle
2020-06-24 13:57:05 +02:00
Michael Vetter
1332a4a6c2
Release 0.9.4
2020-06-24 13:56:34 +02:00
Michael Vetter
34be63f514
Merge pull request #1373 from profanity-im/cygwin-notify
...
Fix gcc warnings for cygwin
2020-06-24 13:50:24 +02:00
Dmitry Podgorny
09e12a826f
Fix gcc warnings for cygwin
...
strncpy(3) is not so safe function and can lead to mistakes. For
example, strncpy(dest, "Profanity", 10); is redundant and leads to
problems when someone changes the source string.
Different example is when 3rd argument equals to length of the
destination buffer. strncpy(3) doesn't terminate string with '\0' when
it truncates. Therefore, the destination string becomes corrupted.
Zeroize storage for 'nid', so the last byte remains '\0' in case of
truncate.
2020-06-24 16:29:19 +03:00
Michael Vetter
5d8f3f2791
Merge pull request #1372 from profanity-im/missed-string-h
...
Add missed string.h
2020-06-24 09:51:54 +02:00
Dmitry Podgorny
ca3da61776
Add missed string.h
...
strdup(3) requires string.h
2020-06-24 03:07:53 +03:00
Michael Vetter
b79d7e8752
Fix NULL terminated list
...
Regards https://github.com/profanity-im/profanity/issues/1367
2020-06-23 14:42:09 +02:00
DebXWoody
b7f959bab4
Clean-up: defines cmd_funcs.c
2020-06-20 06:45:40 +02:00