about summary refs log tree commit diff stats
path: root/src/config
Commit message (Collapse)AuthorAgeFilesLines
* MUC: Show offline members in sidebarThorben Günther2021-03-083-0/+5
|
* Update copyrightMichael Vetter2021-01-084-4/+4
|
* Add `/executable (urlsave|urlopen)` migrationsWilliam Wennerström2020-12-181-3/+29
|
* Use popen for eval_password (reintroduce old behavior)William Wennerström2020-12-151-20/+35
| | | | | Old commit that implemented the old behavior: bc9e6b79cdc246f7e97f6ddff7ea81474a698b05
* Refactor call_externalWilliam Wennerström2020-12-111-11/+19
|
* Use whole path as logfile when defined via -fMichael Vetter2020-12-111-8/+14
| | | | | | | | | `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
* Set default color for trackbarMichael Vetter2020-12-101-0/+1
| | | | Fix https://github.com/profanity-im/profanity/issues/1453
* Fix various typosMichael Vetter2020-12-102-2/+2
|
* docs: fix simple typo, certian -> certainTim Gates2020-12-101-1/+1
| | | | | | There is a small typo in src/config/theme.c. Should read `certain` rather than `certian`.
* Purge omemo sendfile from configMichael Vetter2020-12-091-0/+5
| | | | | | | | | | 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.
* Remove scheme and filetype matching for url (save|open)William Wennerström2020-12-081-2/+2
|
* Move unique_filename_from_url functions to commonWilliam Wennerström2020-12-041-1/+0
|
* Refactor for threaded external executable for built-in download methodsWilliam Wennerström2020-12-033-55/+14
|
* Use fallback method when /executable urlsave is unsetWilliam Wennerström2020-11-161-2/+0
|
* Run make format on rebaseWilliam Wennerström2020-11-161-389/+387
|
* Remove /omemo sendfileWilliam Wennerström2020-11-162-391/+389
|
* Declare counter var inside loopMichael Vetter2020-11-094-53/+30
| | | | We require c99/gnu99 anyways.
* Dont initialize i twice in accounts_get_account()Michael Vetter2020-11-051-5/+5
|
* Since the string from strerror should never be modified, use const.Philipp Klaus Krause2020-10-141-1/+1
|
* Basic support for building on NetBSD.nia2020-09-042-0/+4
| | | | | | - Add NetBSD as a recognized platform without -ldl. - Allow building with NetBSD libcurses instead of ncurses. - Portability to NetBSD sh - use POSIX '=' instead of '=='.
* Apply coding styleMichael Vetter2020-07-0718-1709/+1929
|
* Revert "Apply coding style"Michael Vetter2020-07-0718-1950/+1730
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-0718-1730/+1950
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Log errors from eval_passwordWilliam Wennerström2020-07-061-1/+2
| | | | | All errors were discarded to /dev/null if the error_ptr was set to NULL.
* Remove prefs_free_string()Michael Vetter2020-07-023-13/+6
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Merge pull request #1374 from profanity-im/revampUrlopenMichael Vetter2020-07-022-7/+145
|\ | | | | Rework /url and /executable for filetypes
| * Transform url.open.cmd to new default schemeMichael Vetter2020-07-021-1/+1
| | | | | | | | | | | | Additionally to: 7de83217c4d7bfdb70b77f2baeb8f12d4147d873 1e2a288d80fe0200f1d44d5106f7cc5bfd77718b
| * executable: actually take the user set default if a certain scheme isMichael Vetter2020-07-021-6/+11
| | | | | | | | not found
| * cmd_url_*(): use gchar instead of charMichael Vetter2020-07-022-2/+2
| |
| * Use correct format when transforming old urlopen.cmdMichael Vetter2020-07-021-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally to ec7e635e752bdfef851fd177596c1d73d97afb42. 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; ```
| * use '*' to set a default executablePierre Mazière2020-07-021-11/+24
| | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * Move url/avatar commands from logging to exectuables sectionMichael Vetter2020-07-011-0/+14
| | | | | | | | | | | | | | | | | | c56d530b67d09267eb46cba029217e4b84b32cef 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.
| * prefs_free_string() doesnt need to check if pref is NULLMichael Vetter2020-07-011-4/+1
| | | | | | | | g_free(NULL); is noop.
| * Replace /urlopen with /url and adapt /executablePierre Mazière2020-06-252-3/+17
| | | | | | | | | | | | | | | | /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>
| * Add string and string list preferences with optionPierre Mazière2020-06-252-1/+89
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Add default value for titlebar.scrolledMichael Vetter2020-07-011-0/+1
| | | | | | | | Fix https://github.com/profanity-im/profanity/issues/1380
* | files.c: use const char *const where appropriateMichael Vetter2020-07-012-4/+4
| |
* | Use files_get_account_data_path instead of duplicate codeMichael Vetter2020-07-012-2/+21
| | | | | | | | | | 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.
* | Feature request - XEP-0373: OpenPGP for XMPP (OX)DebXWoody2020-06-292-0/+16
|/ | | | | | | | | Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331
* Fix NULL terminated listMichael Vetter2020-06-231-1/+1
| | | | Regards https://github.com/profanity-im/profanity/issues/1367
* Use shell to start eval_password commandMichael Vetter2020-06-191-5/+1
| | | | | | | | | | | | | | Since https://github.com/profanity-im/profanity/commit/d92c576aa53505d712715b1acc6344af3262c84f we rely on g_spawn_sync(). Which doesn't do variable/glob expansion. For our use of call_external() in opening and URL or avatar this is fine. For getting the password we want to be able to use ~ for our files. Let's use a shell here. Fix https://github.com/profanity-im/profanity/issues/1364
* Fix reading/writing linked filesMichael Vetter2020-06-132-2/+2
| | | | | | "base" was not really base but the filename :-) Fix https://github.com/profanity-im/profanity/issues/1362
* Define POSIX macro to have strdupMichael Vetter2020-06-124-18/+19
| | | | | | | | | | | | | | https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602 sets C99 as standard. strdup() is not part of C99. For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99. Using `gnu99` instead would be another option. We should take more care to use glib functions whenever possible. Regards https://github.com/profanity-im/profanity/issues/1357
* Dont manipulate pointer from getenvMichael Vetter2020-06-121-6/+14
| | | | | | | | | | | | Found this when looking to fix bug https://github.com/profanity-im/profanity/issues/1357 Not sure if it is related. man 3 getenv sais: ``` As typically implemented, getenv() returns a pointer to a string within the environment list. The caller must take care not to modify this string, since that would change the environment of the process. ```
* Add option for legacy authenticationDmitry Podgorny2020-06-054-5/+37
| | | | | | | | New options: /connect <account> [auth default|legacy] /account <account> set auth default|legacy Fixes #1236.
* Use external_call to get password via eval_password commandPierre Mazière2020-06-031-26/+24
| | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* PoC for bookmark ignoreMichael Vetter2020-05-241-0/+1
| | | | | | | | | | ``` ~/.local/share/profanity % cat bookmark_ignore [ignore] profanity@rooms.dismail.de= ``` Regards https://github.com/profanity-im/profanity/issues/1115
* Make option to allow hiding windows with no messages in statusbarMichael Vetter2020-05-212-0/+5
| | | | | | | `statusbar.show.read` can be set to false in the config. `/statusbar show|hide read`. Implement https://github.com/profanity-im/profanity/issues/1285
* Make 'scrolled' themeableMichael Vetter2020-05-212-0/+3
|
* Make urlopen command configurableMichael Vetter2020-05-202-0/+5
|