Coder Social home page Coder Social logo

com.mattermost.desktop's Introduction

Mattermost Desktop - Flatpak

Prerequisites

$ flatpak install flathub org.freedesktop.Sdk//23.08
$ flatpak install flathub org.electronjs.Electron2.BaseApp//23.08

Build to local repository, install

$ flatpak-builder build-dir com.mattermost.Desktop.json --force-clean --repo=repo
$ flatpak --user remote-add --no-gpg-verify test-repo repo
$ flatpak --user install test-repo com.mattermost.Desktop

com.mattermost.desktop's People

Contributors

apollo13 avatar bbhtt avatar bilelmoussaoui avatar erick555 avatar expwez avatar flathubbot avatar iavael avatar liquidpl avatar petr-stefan-szn avatar razzeee avatar semaicze avatar svelle avatar swsnr avatar tingping avatar vchernin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

com.mattermost.desktop's Issues

authentication on fedora 39 fails

I have a setup with an internal gitlab setup authenticating the mattermost account.

the procedure (which worked until a few days/weeks?) back was:

  1. on login screen click GitLab
  2. browser opens, you authenticate (or just approve the access permission if already logged in)
  3. the mattermost flatpak gets the auth token and you´re ready to chat.

now after step 2 nothing happens, mattermost flatpak does not get anything.

(FYI: firefox/rpm is used here)

quit unexpectitly

Get en error after update to Mattermost 5.0.0
"Internal error: Render frame was disposed before WebFrameMain could be accessed"

I'm on Debian 10 Buster with latest updates. Flatpak 1.2.5

Log:

Application: Mattermost 5.0.0
Platform: Linux 4.19.0-18-amd64 x64
Error: Render frame was disposed before WebFrameMain could be accessed
    at Object.n.send (electron/js2c/browser_init.js:165:413)
    at Object.b.send (electron/js2c/browser_init.js:161:2492)
    at ViewManager.fadeLoadingScreen (/app/main/resources/app.asar/index.js:60952:40)
    at ViewManager.setServerInitialized (/app/main/resources/app.asar/index.js:60969:16)
    at IpcMainImpl.handleReactAppInitialized (/app/main/resources/app.asar/index.js:60223:24)
    at IpcMainImpl.emit (events.js:376:20)
    at Object.<anonymous> (electron/js2c/browser_init.js:161:9959)
    at Object.emit (events.js:376:20)

Remove i386

It hasn't been supported by Flathub for a while

Systray icon does not appear until GNOME AppIndicator extension is reloaded

After starting Mattermost application using flatpak run com.mattermost.Desktop, the system tray icon does not appear.

If I, while Mattermost is running, use the GNOME Tweaks application to disable the AppIndicator GNOME Shell extension and then enable it immediately after, the system tray icon shows up.

The official Mattermost AppImage release does not exhibit this behaviour, so the issue is specific to the Flatpak release. That is, after starting the AppImage binary, the system tray icon shows up immediately - I do not need to reload the AppIndicator GNOME Shell extension.

I'm running Fedora 32, GNOME Shell v3.36.5, AppIndicator extension v33, and Mattermost v4.5.3 (both Flatpak and AppImage).

Prerequisites update

Hey,

I'm not really knowledgeable in flatpak things so I'm not sure if this can be just my OS version thing, anyway, I'm on Tumbleweed and for me the Prerequisities show a little different than written on the README.

After going through the steps, I found out that the versions required for me no longer are 19.08, but 20.08 for both. Also the electron baseapp distribution is actually wrong, for me when installing the 20.08 of the same image I got an error. It actually doesn't want

flatpak install flathub io.atom.electron.BaseApp//20.08

but this one is needed:

flatpak install org.electronjs.Electron2.BaseApp//20.0

Mattermost on start fails with "write EPIPE"

Right after starting up, mattermost complains with a dialog message showing an internal error "write EPIPE" and clicking any button forces mattermost to close and not reopen.

Opening mattermost from a terminal fixes the issue as it have a tty I believe.

Bug: Launcher starts new instances when hidden in Systray

Steps to reproduce:

  • Configure Mattermost to hide in the Systray when the window is closed.
  • Restart Mattermost so the changes take effect
  • Close the window so only the Systray indicator is left
  • Start Mattermost again via the launcher

Observed behaviour:
A new instance is started

Expected behaviour:
The hidden instance is reactivated at its window gets show

No support for arm64 / aarch64

Only amd64 builds are available currently, which makes it impossible to install this Flatpak on devices like a Pinebook Pro.

Recently, aarch64 Linux builds have been added to the upstream CI pipelines, and will be included in the next release: mattermost/desktop#2406

It would be useful if this would be added to the next release on Flathub as well.

Wrong tray notification icon

Hi!

the notificaciont icon that appears in system tray is not correct. It should be the same app icon with a little red circle to show that a new message has been received.

The third icon on the left side:
mattermost_notification_icon

Can't access yubikey

The flatpak is not able to access my yubikey, when I need it as a second factor for login.

I've set socket=pcsc and device=all not sure which one is the correct one, but after restarting the app it worked fine.

Mouse Cursor Extremely Small on HiDPI Displays Running Wayland

This is similar to this issue here: flathub/im.riot.Riot#341 and might be fixed like it was done for the Signal flatpak here: flathub/org.signal.Signal@831398d

I am running mattermost with the flags--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland since I am on wayland and I use scaling. Without those flags all the fonts are blurry. But the cursor still is suuper small and does not get scaled appropriately. It seems to be a common issue as I found several issues about it here.

I can get more information on this if needed.

No tray icon on Manjaro Gnome

Hi, I am on the latest Manjaro Gnome and installed the Desktop Application; however, when I close it and run it in the background, I would like to have a tray icon to see that Mattermost is still running and if new notifications arrive. Unfortunately, there is no icon. Is this a known issue or did I do something wrong?

UI blurry on Fedora 39 GNOME Wayland HiDPI display

This Mattermost Desktop Flatpak installation produces a blurry display of the UI on Fedora 39 with Wayland GNOME on a HiDPI display.

This happens with and without the file ~/.local/share/applications/com.mattermost.Desktop.desktop being present to overlay the stock .desktop file:

$ diff /var/lib/flatpak/exports/share/applications/com.mattermost.Desktop.desktop ~/.local/share/applications/com.mattermost.Desktop.desktop
4c4
< Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=mattermost-flatpak --file-forwarding com.mattermost.Desktop --enable-features=WebRTCPipeWireCapturer @@u %U @@
---
> Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=mattermost-flatpak --file-forwarding --socket=wayland com.mattermost.Desktop --enable-features=WebRTCPipeWireCapturer,UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland @@u %U @@

Do other people experience this issue, too?

Can not add a server

Hey there,

I just installed a new system and grabbed mattermost from flathub.

Then tried to add a new server:

Clicked No server configured -> + Add server -> Nothing happens

Not sure if there should be a popup. Unfortunately I can't get a decent log, as running flatpak run com.mattermost.Desktop seems to not attach to the running process. Probably due to the electron wrapper.

"Start app on login" fails

Hi thanks a lot for this packaging, very helpful :)

I'm using it on Linux Mint, here the "Start app on login" setting does not work: it writes an autostart script with the command /app/main/mattermost-desktop --hidden which of course makes no sense from the pov of my system.

I ended up disabling the setting and adding my own autostart entry which calls the same command as the existing menu entry: /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=mattermost-flatpak --file-forwarding com.mattermost.Desktop --enable-features=WebRTCPipeWireCapturer

Would be nice if this autostart command could be adjusted accordingly when added by a flatpak'd app.

Open permissions to the user home directory

Hi,

Right now, Mattermost has open permissions to the whole of user's home directory by default as can be seen in Flatseal.

image

Comparing that to the permissions of Slack, I believe the permissions are way too open and could be more restricted, like so:

image

Are there any blockers to implement this?

Official support

Ideally the Flatpak would be offically recomended on mattermost.com when users are downloading it. This issue tracks the steps that might be needed for that to happen.

The original proposal to build a Flatpak is here: mattermost/desktop#870. @SemaiCZE Has there been any upstream interest to officially support the Flatpak since then?

An intermediate step could be to have it listed as part of GitHub releases with an unofficial label (like the AppImage). Also it could be mentioned in the install guide.

To do (in no particular order):

  • Ensure feature parity between Flatpak and non-Flatpak releases.
  • Explore if electron-builder could be used over extracting the tarball.
  • I personally think using the tarball is pretty sensible, after all the Flatpak manifest is quite simple.
  • See if the icon can be fixed without putting it in the repo.
  • Ensure x-checker-data works properly.
  • Ask upstream if they have any issues/concerns with officially supporting a Flatpak package.
  • Investigate building the Flatpak as part of Mattermost's infrastructure.
  • This means there'd be no GitHub repo like we have now. Instead it would look like Mozilla's Firefox Flatpak (notice there's no publisher link).
  • See also: flathub/com.obsproject.Studio#136

Cannot connect behind corporate proxy

Hello,

I cannot connect to a Mattermost instance behind a corporate HTTP proxy when using the Flatpak package. This appears to be quite specific to the Flatpak variant; my proxy configuration works

  • with normal desktop apps,
  • with other Flatpak apps (I can e.g. send me messages with Signal Desktop through the same proxy), and even
  • with the Linux binary one can download from https://mattermost.com/download/#mattermostApps/ (the one also listed as source in the flatpak manifest JSON).

It's really just the Mattermost Flatpak which is stuck in the loading spinner behind a proxy (it works if I use a public network, so it's really a proxy issue I guess). I can really just download the binary listed as source in the JSON, run in directly and it works, so I really believe some flatpak stuff is to blame here.

Unfortunately I know neither Mattermost nor Flatpak sufficiently to do any debugging; I'd very much appreciate pointers in the right direction.

Kind regards

No tray icon anymore

I'm not exactly sure since when but I guess since a few days or so
there is no tray icon anymore

it worked before

for testing I tried mattermost-desktop from nixpkgs (version 5.1.0)
and there the tray icon worked

I'm using LXQt with x11
Version 5.3.1 commit: 2c3d80f

Fails to upgrade/install to 4.6.0

I've had this problem for a while where Mattermost never managed to upgrade to 4.6.0 from Flathub.
Tried removing, and running install again (from the command line):

Looking for matches?
Info: org.freedesktop.Platform.Icontheme.Adwaita is end-of-life, with reason: The Icontheme extensions are not used anymore.

com.mattermost.Desktop permissions:
    ipc     network     pulseaudio     x11     dri     file access [1]     dbus access [2]

    [1] home
    [2] com.canonical.AppMenu.Registrar, org.freedesktop.Notifications


        ID                                           Branch            Op            Remote                   Download
 1. [?] org.freedesktop.Platform.Locale              20.08             u             flathub                  106.9?MB / 322.1?MB
 2. [?] org.freedesktop.Platform.openh264            2.0               u             gnome-nightly            < 1.5?MB
 3. [?] com.mattermost.Desktop                       stable            i             flathub                    1.0?kB / 121.0?MB

Warning: Server returned status 404: Not Found
Error: While trying to checkout 679337c414658767f2182fba2254016c2abd785f1352b826669e77b740b439dd into /home/marcus/.local/share/flatpak/app/com.mattermost.Desktop/x86_64/stable/.679337c414658767f2182fba2254016c2abd785f1352b826669e77b740b439dd-7VUSX0: Opening content object 5328c448f6d31776141ff5d05a964707e5eb84ce9734ad9c41de855894e56c3d: Couldn't find file object '5328c448f6d31776141ff5d05a964707e5eb84ce9734ad9c41de855894e56c3d'
Pruning repo failed: No such metadata object 141790b376334031e3c76df0f75d082352994b0c24675aee378d65e94129d1c2.dirtreeerror: Failed to install com.mattermost.Desktop: While trying to checkout 679337c414658767f2182fba2254016c2abd785f1352b826669e77b740b439dd into /home/marcus/.local/share/flatpak/app/com.mattermost.Desktop/x86_64/stable/.679337c414658767f2182fba2254016c2abd785f1352b826669e77b740b439dd-7VUSX0: Opening content object 5328c448f6d31776141ff5d05a964707e5eb84ce9734ad9c41de855894e56c3d: Couldn't find file object '5328c448f6d31776141ff5d05a964707e5eb84ce9734ad9c41de855894e56c3d'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.