johannesjo / super-productivity

Super Productivity is an advanced todo list app with integrated Timeboxing and time tracking capabilities. It also comes with integrations for Jira, Gitlab, GitHub and Open Project.
http://super-productivity.com
MIT License
9.3k stars 789 forks source link

[Arch] SNAP package - Failed to load module "canberra-gtk-module" #27

Closed presianbg closed 6 years ago

presianbg commented 6 years ago

Your Environment

Expected Behavior

The application is starting with this error:

Gtk-Message: Failed to load module "canberra-gtk-module"

And looks like this:

image

Any advice?

Btw the web app is awesome!

Best Regards, Presian

johannesjo commented 6 years ago

Hello! Thanks for reporting! Here are some suggestions Does sudo apt install libcanberra-gtk-module libcanberra-gtk3-module fix your issue (source: https://askubuntu.com/questions/208431/failed-to-load-module-canberra-gtk-module)?

presianbg commented 6 years ago

@johannesjo Thanks for fast response. Arch Linux has different package names for those libraries:

extra/libcanberra 0.30+2+gc0620e4-1 [installed]
    A small and lightweight implementation of the XDG Sound Theme Specification
extra/libcanberra-gstreamer 0.30+2+gc0620e4-1
    GStreamer plugin for libcanberra
extra/libcanberra-pulse 0.30+2+gc0620e4-1 [installed]
    PulseAudio plugin for libcanberra
multilib/lib32-libcanberra 0.30-4 [installed]
    A small and lightweight implementation of the XDG Sound Theme Specification (32-bit)
multilib/lib32-libcanberra-pulse 0.30-4
    PulseAudio plugin for libcanberra (32-bit)

Perhaps it's wrong / missing path? Unfortunately I have poor experience with SNAP , actually it's my fist snap package :), so I'm not able to provide any detailed info without further guidance.

johannesjo commented 6 years ago

Thank you! That's already pretty helpful. I did a little research. Currently I believe that this an error with snap building itself that it doesn't properly map its plugins.

This is what the electron generated snapcraft.yml looks like:

name: superproductivity
version: 1.3.6
summary: superProductivity
description: Personal Task Management App to help you with your daily struggle with JIRA etc.
confinement: strict
grade: stable
icon: snap/gui/icon.png
apps:
  superproductivity:
    command: env TMPDIR=$XDG_RUNTIME_DIR desktop-launch $SNAP/superproductivity
    plugs:
      - home
      - x11
      - unity7
      - browser-support
      - network
      - gsettings
      - pulseaudio
      - opengl
parts:
  app:
    plugin: dump
    stage-packages:
      - libnotify4
      - libappindicator1
      - libxtst6
      - libnss3
      - libxss1
      - fontconfig-config
      - gconf2
      - libasound2
      - pulseaudio
    source: /home/user/www/super-productivity/dist/linux-unpacked
    after:
      - desktop-glib-only

I'll try debugging this further this weekend, but I'm glad for any help :)

Morganamilo commented 6 years ago

I uploaded a version to the AUR. See if that works for you.

johannesjo commented 6 years ago

@Morganamilo Did you do any adjustments to the snapfile? If so I'm curious to hear what they are! Also: What is AUR? :)

presianbg commented 6 years ago

@Morganamilo It works! Many thanks :+1:

Morganamilo commented 6 years ago

I am not a fan of snap so I never bothered to try it. First I tried compiling from source where I got 'cannot find module ..dialog' so instead I used the deb which works fine.

The AUR is the Arch User Repository, basically a repo where any one is allowed to upload packages.

You can find the package here https://aur.archlinux.org/packages/superproductivity/

johannesjo commented 6 years ago

@Morganamilo interesting! Thanks! Didn't know about it.

Also interesting that you got the 'cannot find module ..dialog' error when compiling. So far I have't been able to reproduce the issue myself unfortunately although I tried different linux distros and configs via a VM.

Morganamilo commented 6 years ago

Having looked back over it, the error I actually got was 'cannot find module ..tray'. I realised this was from trying to open Super Productivity while there was an instance running in the background. I would call this its own issue but its unrelated to this.

So with no instance already running in the background, the latest deb, .tar.gz and clone of master all build and run fine on my machine.

johannesjo commented 6 years ago

Not really sure if this is still an issue with the latest release to be honest. I'm closing this for now.

andres-jurado commented 6 years ago

Regarding this issue. The regular version of Firefox runs without issues, but the snap version (/snap/bin/firefox) produces the following error:

Gtk-Message: Failed to load module "canberra-gtk-module"

johannesjo commented 6 years ago

@andres-jurado. Could you maybe open up a new issue and provide a little bit more info? That would be really helpful!

hasand commented 6 years ago

Open Synaptic package manager (it's available in Linux Software resource) and search for canberra-gtk-module then mark for installation and apply. That worked for me.

andres-jurado commented 6 years ago

Sadly that package doesn't seem to be present in Ubuntu 18.04 amd64 (the closest is libcanberra-gtk-module which I already have installed)

José Andrés Jurado Economics Student

On Sat, May 5, 2018 at 11:04 AM, hasand notifications@github.com wrote:

Open Synaptic package manager (it's available in Linux Software resource) and search for canberra-gtk-module then mark for installation and apply. That worked for me.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/johannesjo/super-productivity/issues/27#issuecomment-386811725, or mute the thread https://github.com/notifications/unsubscribe-auth/ATjnUhxPiQk78Wav-nt9x10aNGIL0vJXks5tvb-QgaJpZM4QnOzS .

hasand commented 6 years ago

Andres, I did that just a few minutes before I posted the first message up there. I have Ubuntu 18.04 on amd64 laptop

johannesjo commented 6 years ago

I'm updating electron and electron builder for the next release. I'm unable to reproduce this issue properly, but hopefully this will fix the issue and automatically install the libcanberra-gtk-module if not already there.

BananaLoaf commented 5 years ago

Fixed this bug for me on Manjaro, but I was launching google-play-music-desktop-player, not super-productivity sudo snap install core

makew0rld commented 5 years ago

I've had this bug with other programs. If you run echo $GTK_MODULES you can see the libcanberra is there. By running unset GTK_MODULES you can remove it, and all applications that reported the error work fine. You can add this command to your ~/.bash_profile or the Zsh equivalent, whatever you use. It worked for me with other stuff, but I have never used this program before.