Gajim - 2024-10-01


  1. fjklp

    > fjklp: building Gajim nightly as flatpak is only like 3 commands there is a readme I tried following the readme. When I do `pip install .` it output: ``` error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. ```

  2. fjklp

    I don't know this stuff and don't want to deal with it. Are we not going to have a nightly package again?

  3. fjklp

    > > I actually did copy that but where would it be pasted? you mean to join again? > fjklp: you can paste it in the same place you copied it from (but perhaps for a different account) nothing can be pasted there

  4. hannibal

    fjklp: try thr readme in https://dev.gajim.org/gajim/gajim/-/tree/master/flatpak?ref_type=heads

  5. hannibal

    fjklp: try the readme in https://dev.gajim.org/gajim/gajim/-/tree/master/flatpak?ref_type=heads

  6. fjklp

    seems like I'll end up making some mess that I'll have to clean up or fix later

  7. fjklp

    I want things to be simple right now

  8. fjklp

    I really dislike doing stuff I don't understand. In https://dev.gajim.org/gajim/gajim/-/tree/master/flatpak?ref_type=heads#install-gajim-and-dependencies there is a line `flatpak --user remote-add --no-gpg-verify gajim_flatpak_repo gajim_flatpak_repo`. What is --no-gpg-verify and is it stupid for me to be running this?

  9. fjklp

    man, I'm going to mess something up

  10. fjklp

    I don't understand that whole flatpak build process, nor if it will cause problems. After the whole process I run `flatpak run org.gajim.Gajim` and it outputs `Missing dependency: Namespace GtkSource not available for version 4`

  11. fjklp

    I guess the easiest way to stay up to date is just to run the regular release

  12. fjklp

    > seems like I'll end up making some mess that I'll have to clean up or fix later I should have listened to that guy

  13. fjklp

    does anyone know if `flatpak-builder --install-deps` only installs into the specified directory?

  14. fjklp

    how often does flathub get updated?

  15. fjklp

    great, I can't share databases between nightly and stable

  16. meson

    fjklp: It's flatpak, apps and app data are to a certain degree sandboxed :-P And nightly and stable are in a sense two different flatpak apps

  17. meson

    Have you managed to build it yourself or do you still need help?

  18. fjklp

    I installed stable, I abandoned building

  19. fjklp

    I guess I need to migrate stuff now

  20. fjklp

    for now I guess I'll forget about using nightly

  21. meson

    > I abandoned building I will post you my instructions later

  22. fjklp

    gajim nuked my fucking logs

  23. meson

    fjklp, ``` python3 -m venv python-venv-gajim source python-venv-gajim/bin/activate # for bash, for fish shell it's activate.fish pip install cryptography css-parser emoji PyGObject pycairo keyring nbxmpp omemo-dr packaging pillow precis-i18n qrcode setuptools SQLAlchemy protobuf git clone https://dev.gajim.org/gajim/gajim.git gajim/launch.py ```

  24. fjklp

    can anyone explain why ``` cd ~/.var/app mv org.gajim.Gajim.Devel/data/gajim/ org.gajim.Gajim/data/gajim/ org.gajim.Gajim.Devel/config/gajim/ org.gajim.Gajim/config/gajim/ ``` then run gajim would cause everything in org.gajim.Gajim/data/gajim/ to be lost?

  25. fjklp

    can anyone explain why ``` cd ~/.var/app mv org.gajim.Gajim.Devel/data/gajim/ org.gajim.Gajim/data/gajim/ mv org.gajim.Gajim.Devel/config/gajim/ org.gajim.Gajim/config/gajim/ ``` then run gajim would cause everything in org.gajim.Gajim/data/gajim/ to be lost?

  26. fjklp

    the typing notification is infinitely better now but damn does this piss me off

  27. meson

    > mv org.gajim.Gajim.Devel/data/gajim because this overwrites all files which equal name in the destination folder

  28. meson

    > mv org.gajim.Gajim.Devel/data/gajim because this overwrites all files with equal name in the destination folder

  29. fjklp

    isn't that the goal in migrating?

  30. meson

    have you used the stable flatpak before?

  31. meson

    have you used the stable flatpak before or the nightly (devel) ?

  32. meson

    have you used Gajim from your distro package?

  33. fjklp

    I'm not sure what you are actually wanting to know here

  34. fjklp

    I did `rm -rf ~/.var/app/org.gajim.Gajim/data/gajim`, then installed the stable flatpak, then launched the stable flatpak, fearing that it might overwrite stuff on the first run, then I did the `mv` command to migrate stuff. Then I launched the stable flatpak again.

  35. meson

    I just wanted to know, which Gajim version you have used before, where you think you lost all your logs?

  36. meson

    I just wanted to know, which Gajim version you have used before regularly, where you think you lost all your logs?

  37. fjklp

    >I have used maybe more installs than I can recall. I was using the nightly deb for a long time. Then the nightly flatpak. I have no idea what the relevance of this is.

  38. fjklp

    >which Gajim version you have used before regularly I have used maybe more installs than I can recall. I was using the nightly deb for a long time. Then the nightly flatpak. I have no idea what the relevance of this is.

  39. fjklp

    >where you think you lost all your logs I'm not sure what you mean. I assume they don't exist.

  40. fjklp

    do you mean what do I think went wrong? no idea, that's why I asked.

  41. meson

    I got it now. > then run gajim would cause everything in org.gajim.Gajim/data/gajim/ to be lost? it should not. your logs.db is empty? there's no logs.db.bak (backup) from a potential downgrade?

  42. meson

    I got it now. > then run gajim would cause everything in org.gajim.Gajim/data/gajim/ to be lost? it should not. your logs.db is empty in `org.gajim.Gajim/data/gajim/`? there's no logs.db.bak (backup) from a potential downgrade?

  43. fjklp

    all the omemo keys and everything was gone

  44. fjklp

    it seems gajim deleted everything

  45. fjklp

    idk, I coped the exact commands when I posted them here

  46. fjklp

    I have no backup

  47. fjklp

    that was intentional, no need to remind me to do backups after it's lost

  48. meson

    maybe the commands should be adjusted: cp -r instead of mv ;)

  49. fjklp

    you mean I should assume that software will nuke things

  50. meson

    always use the safer path

  51. fjklp

    god damn it I really hate computers

  52. meson

    fjklp, can you please check if you have a gajim folder in `org.gajim.Gajim/data/gajim/` and `org.gajim.Gajim/config/gajim/`?

  53. meson

    i.e. `org.gajim.Gajim/data/gajim/gajim`

  54. meson

    I have the feeling you may have moved the folder itself instead of its content

  55. fjklp

    holy shit

  56. fjklp

    > I have the feeling you may have moved the folder itself instead of its content you are exactly right. Thank you sir. Sorry for all my complaining. My mistake.

  57. fjklp

    heh, I really wish I had the ability to clean up all the useless comments I left

  58. meson

    np, glad it works for you now and the instructions in the Wiki should be clarified or corrected

  59. meson

    np, glad it works for you now and now we know that the instructions in the Wiki should be clarified or corrected

  60. fjklp

    cal0pteryx, big improvement on the typing notifications! Thanks for that.

  61. meson

    fjklp, where have you found these `mv` instructions? https://dev.gajim.org/gajim/gajim/tree/master/flatpak#migrate-your-data literally says `copy`

  62. fjklp

    meson, I'm aware, it was my choice

  63. meson

    🙈️

  64. fjklp

    I sometimes surprise myself at how easy it is for me to make mistakes like this

  65. aereaux

    I filed an issue with pipx about the way I'm using it to install the git version of gajim. They suggest implementing setuptools-scm to properly install the git version of nbxmpp. Is that something you are considering? https://github.com/pypa/pipx/issues/1545#issuecomment-2385133103

  66. lovetox

    aereaux: what is your actual problem? I cannot find one in the linked issue

  67. aereaux

    lovetox, When I install gajim using pipx it installs the release version of nbxmpp because that's what specified in the `pyproject.toml`. I used `pipx inject` to install the git version afterwards, but while it reports a success it doesn't actually install it because it matches the version number of the release version already installed

  68. lovetox

    Seems force solves your problem

  69. aereaux

    It doesn't. It runs the pip install command but that doesn't actual install it because the version numbers match

  70. lovetox

    Yes that's what force is for

  71. aereaux

    I'm not sure I understand what you mean? The force option doesn't actually end up installing anything

  72. lovetox

    Sounds like a bug theb

  73. lovetox

    Or what do the docs say on the force option

  74. aereaux

    Yeah I know, that's why I filed the bug, but they suggested this other solution. According to https://pipx.pypa.io/stable/docs/#pipx-inject : ` --force, -f Modify existing virtual environment and files in PIPX_BIN_DIR and PIPX_MAN_DIR` which seems like a weird way to specify what it might do?

  75. aereaux

    Yeah I know, that's why I filed the bug, but they suggested this other solution. According to https://pipx.pypa.io/stable/docs/#pipx-inject : `--force, -f Modify existing virtual environment and files in PIPX_BIN_DIR and PIPX_MAN_DIR` which seems like a weird way to specify what it might do?

  76. lovetox

    I write later an answer

  77. aereaux

    OK, thanks. Let me know if you need any other debugging info from me or to test anything

  78. aereaux

    Another question: do you know if there's an "official" way to install the `[project.optional-dependencies]` from the `pyproject.toml`?

  79. cal0pteryx

    pip install.[dev]

  80. aereaux

    Ah, thanks! I was having trouble figuring out the syntax for installing from a local dir!

  81. meson

    in 1.9.5 there's now obviously an empty line for typing notifications, but you think it's possible to let the scrollbar or especially the participant list touch the message action bar? it looks a bit cut off in the air:

  82. meson

    https://share.conversations.im/meeson_/YXteimSLgf3sbbrd/Screenshot_20241001_170248.png

  83. cal0pteryx

    You'll get used to it :)

    👍 1
  84. meson

    :D

  85. XRevan86

    `littlemancatch@gajim.org` – spam account.

  86. XRevan86

    A spam botnet is attacking me (and others), it includes this gajim.org account.

  87. lovetox

    asterix ^

  88. lovetox

    aereaux, did you try pipx upgrade --force

  89. aereaux

    `pipx upgrade` is for upgrading the version of the main package in a pipx virtualenv. I've been using `pipx reinstall` to manage the versions of gajim itself so that I get a clean environment each time

  90. aereaux

    The `[dev]` solution lets me at least avoid this problem, so I can use that for now

  91. lovetox

    main package?

  92. lovetox

    are you sure, it sounds just like a command to upgrade any package you define

  93. aereaux

    Yeah, the environments pipx manages are defined by the packages you use to install them (each into their own venv), such as `package gajim 1.9.5, installed using Python 3.12.6` (from `pipx list`). `upgrade` upgrades that package using pip

  94. lovetox

    hmm i think there should be away to force reinstall a package in pipx

  95. lovetox

    they cannot expect all projects to use some git version build dependency

  96. lovetox

    still i will look into setuptools-scm

  97. aereaux

    I kind of agree that setuptools-scm is a bit much, but thanks for looking into it

    🎉 1
  98. cal0pteryx

    Gajim 1.9.5 has been released 🎉 https://gajim.org/post/2024-09-30-gajim-1.9.5-released/

    🎉 6
  99. bot

    lovetox pushed 1 commits to branch gajim/master fix: Translations: Use standard ngettext method - https://dev.gajim.org/gajim/gajim/-/commit/555da2d88cb76cd12822cc11312e32def82d7226

  100. Codimp

    > Gajim 1.9.5 has been released 🎉 https://gajim.org/post/2024-09-30-gajim-1.9.5-released/ yeah, but on the website it seems the articles dates are wrong

  101. Codimp

    oh in facts dates are wrong only in French and Spanish

  102. Codimp

    and I can't build the website localy with Hugo, a strange template error. Is the readme still up to date?

  103. Codimp

    ok, it seems to need a specific version of Hugo (version 128 build, but not 135)

  104. lorenzo

    > Gajim 1.9.5 has been released 🎉 https://gajim.org/post/2024-09-30-gajim-1.9.5-released/ 🎉

  105. cal0pteryx

    I have some experience from un-breaking date rendering on xmpp.org. But on gajim.org, Hugo's version is a fixed one I think, which might make it harder. I see what I can do

  106. Codimp

    I'm looking into it, I found the issue, I'm writing a PR

  107. Codimp

    (note that the only "simple" solution is using month as a number instead of word)

  108. cal0pteryx

    if it helps: https://github.com/xsf/xmpp.org/commit/61c106a46363e959d0b6480ada09ced9d2eabe3c

  109. Codimp

    a lot yes, thanks

  110. Codimp

    PR is done, but the pipeline is not running, don't know if it's normal

  111. cal0pteryx

    Codimp, I'm looking at it right now, thanks

  112. bot

    lovetox pushed 1 commits to branch gajim/master imprv: Debug Console: Use different colors depending on light/dark preference - https://dev.gajim.org/gajim/gajim/-/commit/8373fb6fe2beb684bf6fb3773315adbb85d9cce2

  113. cal0pteryx

    Codimp, thanks a lot!

    👍 2
  114. aereaux

    > lovetox pushed 1 commits to branch gajim/master > > fix: Translations: Use standard ngettext method - https://dev.gajim.org/gajim/gajim/-/commit/555da2d88cb76cd12822cc11312e32def82d7226 > > Huh, I'm getting some "%s min ago" with this commit in the chat list

  115. cal0pteryx

    huh, me too

  116. meson

    Why does the participant list report 367 users, while the chat details 377?

  117. meson

    Why does the participant list report 367 users, while the chat details 377 (for this MUC)?