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
11.95k stars 926 forks source link

Superproductivity Snap Won't Open After Install #1696

Open GoofyAF opened 2 years ago

GoofyAF commented 2 years ago

Your Environment

Expected Behavior

App should open when app icon is selected or cli argument 'superproductivity' is entered

Current Behavior

App opens once upon install, but when app is quit and then selected again, it does not open.

Steps to Reproduce (for bugs)

1.sudo snap install superproductivity 2.$ superproductivityor use GUI icon

  1. App opens once, but if quit it will not open again

Console Output

$cat /var/log/syslog

Nov 26 10:42:11 pop-os systemd[5631]: Started Application launched by gnome-shell.
Nov 26 10:42:11 pop-os gnome-shell[5883]: Couldn't find child [0x557d03f0b5a0 Gjs_ui_windowPreview_WindowPreview:first-child last-child ("pop@pop-os: ~")] in window slots
Nov 26 10:42:11 pop-os systemd[5631]: Started snap.superproductivity.superproductivity.de732640-d897-483c-9668-5782e3ebd8ac.scope.
Nov 26 10:42:11 pop-os systemd[5631]: app-gnome-superproductivity_superproductivity-7623.scope: Succeeded.
Nov 26 10:42:11 pop-os kernel: [ 3044.442416] audit: type=1400 audit(1637952131.371:59): apparmor="DENIED" operation="open" profile="/snap/snapd/14066/usr/lib/snapd/snap-confine" name="/etc/pop-os/os-release" pid=7623 comm="snap-confine" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Nov 26 10:42:11 pop-os kernel: [ 3044.445352] audit: type=1400 audit(1637952131.375:60): apparmor="DENIED" operation="open" profile="snap-update-ns.superproductivity" name="/etc/pop-os/os-release" pid=7646 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 26 10:42:11 pop-os kernel: [ 3044.449303] audit: type=1400 audit(1637952131.379:61): apparmor="DENIED" operation="open" profile="snap.superproductivity.superproductivity" name="/etc/pop-os/os-release" pid=7623 comm="snap-exec" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 26 10:42:11 pop-os systemd[5631]: snap.superproductivity.superproductivity.de732640-d897-483c-9668-5782e3ebd8ac.scope: Succeeded.

Error Log (Desktop only)

github-actions[bot] commented 2 years ago

Hello there GoofyAF! šŸ‘‹

Thank you and congratulations šŸŽ‰ for opening your very first issue in this project! šŸ’–

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. šŸ‘€

For more open ended discussions and/or specific questions, please visit the discussions page. šŸ’–

johannesjo commented 2 years ago

Thanks for opening this up. Pull requests are welcome!

GoofyAF commented 2 years ago

I circled back to the install guide and tried the following snap install instructions:

# stable
sudo snap install superproductivity

# edge channel releases
 sudo snap install --channel=edge superproductivity

 # it is also recommended to disable updates to the app while it is running:
 sudo snap set core experimental.refresh-app-awareness=true

This produced the same error as above, app opened on install, and then failed to open a second time. I think the problem is here in the syslog:

apparmor="DENIED" operation="open" profile="/snap/snapd/14066/usr/lib/snapd/snap-confine" name="/etc/pop-os/os-release"

johannesjo commented 2 years ago

Thanks for digging into this. Not sure what went wrong here, but on Ubuntu the app installs and opens just fine. This either could be a problem with snap itself on PopOS or this needs to be addressed through electron-builder as it is responsible for building the snap.

github-actions[bot] commented 2 years ago

This issue has not received any updates in 90 days. Please comment, if this still relevant!

delbian commented 1 year ago

I'm experiencing a similar issue: that is the app opens once, but if I quit it will not open again, unless I wipe completely the configuration. The app does not open , but with no console outputs or errors whatsoever.

version: snap: superproductivity 7.12.1 2023-01-12 (1699) os: Kubuntu 22.10

johannesjo commented 1 year ago

@delbian Are you able to open the console (Ctrl+Shift+I) when this happens? And if so is there any output and how does the network tab look like?

delbian commented 1 year ago

No messages or output trying to start superproductivity in GUI or CLI (I'm using bash). When I try to start it from GUI I'm not able to open the console (I'm not sure what does this mean, but Ctrl+Shift+I opens nothing).

johannesjo commented 1 year ago

@delbian what is the output if you start super productivity from a terminal?

delbian commented 1 year ago

@johannesjo No messages or output trying to start superproductivity in terminal

github-actions[bot] commented 1 year ago

This issue has not received any updates in 90 days. Please comment, if this still relevant!

Svampebob1 commented 1 month ago

I have the same problem and have had it in the past too. Made me switch to appimage. Running superproductivity from command line gives no messages. Journalctl only gives this: Started snap.superproductivity.superproductivity-5ea0ee40-7b87-4d5b-890a-418e173ed25b.scope.

And that's it.

Svampebob1 commented 1 month ago

I'm on Debian 12 and the latest version of SuperProd.

I've had this issue on Ubuntu 22.04 in the past. Probably two years ago.

johannesjo commented 1 month ago

@Svampebob1 thanks for letting me know. I suspect this being more of a snap issue, than one with the app itself, so I am not really sure how to best address this. Do other snaps usually work fine?

Svampebob1 commented 1 month ago

@Svampebob1 thanks for letting me know. I suspect this being more of a snap issue, than one with the app itself, so I am not really sure how to best address this. Do other snaps usually work fine?

No problem. If I had anything to contribute with in this matter, I would. It's a fantastic app! I haven't had the problem with any other snaps. I'm not using many of them, but the few I use works flawlessly šŸ™‚.