1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00
Commit Graph

6633 Commits

Author SHA1 Message Date
Michael Vetter
67d285ebeb build: correct gcrypt 2021-12-01 19:58:48 +01:00
Michael Vetter
41544e2467 build: set HAVE_LIBSIGNAL_LT_2_3_2 in meson
See https://github.com/profanity-im/profanity/pull/1619#discussion_r760472475
2021-12-01 19:51:52 +01:00
Michael Vetter
28476e578b build: add conditional omemo sources 2021-12-01 19:46:34 +01:00
Michael Vetter
a1f883d48d build: fix typos 2021-12-01 19:38:00 +01:00
Michael Vetter
f2684e9166 build: use file object instead of strigns for source files
See
https://github.com/profanity-im/profanity/pull/1619#pullrequestreview-820629048
2021-12-01 19:18:35 +01:00
Michael Vetter
9e0e6e2524 build: add otr sources correctly
See
https://github.com/profanity-im/profanity/pull/1619#discussion_r760443828
2021-12-01 19:14:16 +01:00
Michael Vetter
3e6926f82a build: transform all options to feature options
According to @eli-schwartz review
https://github.com/profanity-im/profanity/pull/1619#discussion_r760421795:

```
"notifications" is a feature object. When configured with
-Dnotifications=disabled it logs:

Dependency libnotify skipped: feature notifications disabled
[...]
    notifications      : disabled

    and builds without support.

    pgp is a boolean option, which IMHO it shouldn't be. When configured
    with -Dpgp=false it logs:

    Run-time dependency gpgme found: YES 1.16.0
    [...]
        pgp                : false

        which is contradictory and misleading, because it was available
        and detected, just not required. So it tries to build with PGP
        support.

        BUILD_PGP is the Makefile.am define, not the C define. This
        should set HAVE_LIBGPGME.

        Later, in core_sources_c, check if pgp_dep.found() and add
        'src/pgp/gpg.c' as an additional source.
```
2021-12-01 19:06:48 +01:00
Michael Vetter
65ee9e8886 build: add internal otr dependency
We need to add the header files to the include dir conditionally too.
2021-12-01 19:06:32 +01:00
Michael Vetter
46857e84c9 build: use pgp and otr deps correctly
* Used the wrong define BUILD_PGP instead of HAVE_LIBGPGME
* Need to add the sources conditionally
2021-12-01 18:38:39 +01:00
Michael Vetter
795c07cfb0 build: use correct name for libX11 dependency 2021-12-01 18:08:51 +01:00
Michael Vetter
c001acc13b build: add optional build deps to meson 2021-11-30 19:53:48 +01:00
Michael Vetter
08d436cc42 build: require at least libstrophe 0.11 2021-11-30 19:24:19 +01:00
Michael Vetter
208bcd4269 build: add libnotify option to meson 2021-10-21 22:51:38 +02:00
Michael Vetter
6ded48c4b4 meson: add basic meson build files
Can only build minimal profanity without optional dependencies yet.
Not all functionality from autoconf is in here yet.
2021-10-21 21:40:30 +02:00
Michael Vetter
37e1699c84 ci: debian test.. 2021-10-16 17:54:28 +02:00
Michael Vetter
9d1bd63885 ci: use new icons switch 2021-10-16 17:51:38 +02:00
Michael Vetter
8af293b744
Merge pull request #1604 from mdosch/themes-snikket
Add (experimental) theme snikket.
2021-10-16 15:19:21 +02:00
Michael Vetter
9cc4b3f162 Update debian docker file
I guess they removed the py2 package now.
2021-10-16 14:38:23 +02:00
Martin Dosch
4cb0eae6b3 Add (experimental) theme snikket. 2021-10-16 14:08:21 +02:00
Michael Vetter
46c8245af9 Format new register code correctly 2021-10-13 21:32:44 +02:00
Michael Vetter
aedef61c91 registration: add test stub 2021-10-13 21:19:54 +02:00
Michael Vetter
e0e45b7b24
Merge pull request #1574 from binex-dsk/master
Add in-band account registration
Fix https://github.com/profanity-im/profanity/issues/199
2021-10-13 21:19:22 +02:00
swirl
0653200965 registration: memory leaks, error checking 2021-10-13 15:02:05 -04:00
swirl
feaa770444 fixed crashes when server doesn't support registration 2021-10-10 15:43:14 -04:00
Michael Vetter
f21595597f Format code correctly 2021-10-05 10:01:27 +02:00
Michael Vetter
7e8cf4a3d6
Merge pull request #1600 from MarcoPolo-PasTonMolo/fix/history-timestamp
Fix history timestamp
2021-10-05 09:59:11 +02:00
MarcoPolo-PasTonMolo
97551aa131 Fix history timestamp
Fixes https://github.com/profanity-im/profanity/issues/1423

Oldest stanza is fetched like before but now the timestamp is generated by creating date_time_from_iso8601 and then to_local, instead of trusting that the timestamp is in utc.
The procedure previously was stamp = time_val_from_iso8601() then date_time = date_time_from_utc(stamp) then local_date_time = to_local(date_time)
2021-10-05 09:56:24 +02:00
Michael Vetter
ce5bf721ca Mention make spell and doublecheck in contributing.md 2021-10-05 09:49:50 +02:00
Michael Vetter
16df5d8255 Add makefile target for spell checking and all tests 2021-10-05 09:49:32 +02:00
Michael Vetter
02e7cc029c Add codespell info to contributing 2021-10-01 23:16:17 +02:00
Michael Vetter
54a51febf3 Add codespell config 2021-10-01 23:13:17 +02:00
Michael Vetter
d64e797665 Fix typos in apidocs 2021-10-01 23:06:29 +02:00
Michael Vetter
9696f4d5cc Fix typo in profapi.h 2021-10-01 22:54:43 +02:00
Michael Vetter
242696f09a Fix fromat string in statusbar
Regards https://github.com/profanity-im/profanity/issues/1597#issuecomment-930540261
2021-09-29 23:25:38 +02:00
Michael Vetter
e5b6258c99 Fix wrong format string in titlebar
See
fd9ccec8dc
and
https://github.com/profanity-im/profanity/issues/1597#issuecomment-930426764.
2021-09-29 20:17:41 +02:00
Michael Vetter
b72801a0e4
Merge pull request #1598 from profanity-im/feature/global-plugins
Improve plugins user experience
2021-09-29 19:29:47 +02:00
Michael Vetter
3120636367 Add more help about how to use plugins
`/plugins install` installs a plugin to
`.local/share/profanity/plugins`.
And also loads it.
When a plugin is loaded it will automatically be added to the `profrc`
file like this:

```
[plugins]
load=my.py;
```

On the next start Profanity will try to load this plugin again unless
`/plugin unload my.py` is called.
2021-09-29 17:32:54 +02:00
Michael Vetter
b0e0012c22 Fix /plugins update ~/dir
If `~/dir` exists profanity exits for me.
Whole code for updating plugins from a dir isn't even implemented. Even
though some messgages suggest otherwise.

Remove this and only allow updating of one file.
2021-09-29 17:32:54 +02:00
Michael Vetter
18c02e5c4d Remove Ruby comment
There most likely won't ever be Ruby plugins.

Regards https://github.com/profanity-im/profanity/issues/779
2021-09-29 17:32:54 +02:00
Michael Vetter
25820235fe List globally available plugins
Packagers can package https://github.com/profanity-im/profanity-plugins
or another collection of plugins to `/usr/local/share/profanity/plugins`
(python) and `/usr/local/lib64/profanity`  (c).
`/plugins` will list these globally available plugins now along with the
ones thare are installed (`~/.local/share/profanity/plugins`) and loaded.

Regards https://github.com/profanity-im/profanity/issues/945
2021-09-29 17:32:54 +02:00
Michael Vetter
7486e22b77 Look for plugins to install in global location
Two options to install plugins.
Mention the whole path:
`/plugins install ~/src/profanity-plugins/my.py`

Mention only the plugin name:
`/plugins install my.py`

The latter will look in `/usr/local/share/profanity/plugins/` for the
file and copy it over to `~/.local/share/profanity/plugins`.

At first I was thinking about loading the plugins from the global
location. But users most likely don't want to have all plugins activated
that an admin installs on a system.

Regards https://github.com/profanity-im/profanity/issues/945
2021-09-29 17:32:54 +02:00
Michael Vetter
ba7b6c2e96 Clean sourcepath from profrc
See 3b3a6b7a75 for sourcepath removal.
2021-09-29 17:32:54 +02:00
Michael Vetter
3b3a6b7a75 Remove /python sourcepath
I feel like this mostly is confusing people.
Also don't see much value for it.

To me it looks like a regular workflow is like:
```
/plugin install ~/src/profanity-plugins/my.py
```

The whole thing with sourcepath, install (which also loads without
having that described anywhere), load etc is confusing.
Also each plugin file that is present in
`.local/share/profanity/plugins` will then be auto loaded. Which means
after installation.
2021-09-29 15:49:05 +02:00
Michael Vetter
fd9ccec8dc Fix wrong format string in titlebar encryption
Fix https://github.com/profanity-im/profanity/issues/1597

Thanks @debacle.
2021-09-29 15:48:09 +02:00
Michael Vetter
e943ababb9 Start new cycle 2021-09-28 19:53:05 +02:00
Michael Vetter
e6f96cd7d7 Release 0.11.1 2021-09-28 19:48:42 +02:00
Michael Vetter
8e43ab05da Fix typos 2021-09-22 13:01:55 +02:00
Michael Vetter
31d72689c7 Add more keybindings to /help navigation 2021-09-15 11:29:20 +02:00
Michael Vetter
619204f4f5 man: add more keybindings 2021-09-15 11:24:59 +02:00
Michael Vetter
1dbe1a33b4 cmd_funcs: Use glib function 2021-09-09 09:53:23 +02:00