brunofin / cohesion

Notion client for Linux
https://flathub.org/apps/details/io.github.brunofin.Cohesion
MIT License
42 stars 1 forks source link

Cohesion just returns blank after deleting browser cache of the browser that was used to sign in to Notion #29

Open anarchy1923 opened 1 month ago

anarchy1923 commented 1 month ago

Hey everyone. Love the app, Bruno. However, I ran into a problem where Cohesion just returns a blank screen if the browser cache is cleared. I used Edge to sign into Notion, and after I deleted the browser cache, the app just doesn't work. Tried force stopping, or quitting from System Tray and restarting the app but no go.

Expected Behaviour - To be presented with the Sign up or Sign in screen again so that I can sign right back into the application, and get back to using it.

kanishkdudeja commented 1 month ago

I'm seeing the same issue. Were you able to figure a fix for this @anarchy1923?

I tried uninstalling and reinstalling the app, but still running into the blank screen.

anarchy1923 commented 1 month ago

@kanishkdudeja No luck on my side as well. I tried deleting the app data in ~.var/local as well in addition to the standard uninstall and reinstall using flatpak uninstall --delete-data Will update if I find anything else. Btw did you try repairing the installation? I haven't tried that but don't have high hopes on that. Cheers, I guess.

ENTPRESTIGIOUS commented 1 month ago

I'm having the same problem. This app no longer works! It just happened all of a sudden one day.

ralacerda commented 1 month ago

Having the same problem on flatpak. Here is the output of flatpak run io.github.brunofin.Cohesion

[3:0917/103744.896997:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
LaunchProcess: failed to execvp:
xdg-settings

It was working yesterday, and it stopped working today. I did update Ubuntu, so this might be what triggered the issue.

kanishkdudeja commented 1 month ago

Tagging @brunofin in case he has an insight into the fix

ralacerda commented 1 month ago

I fixed by enabling the following on FlatSeal:

image

Are you guys all running Ubuntu? Maybe there was a change in permission that blocked access to those resources.

kanishkdudeja commented 1 month ago

Thanks @ralacerda. Yes, I'm running PopOS but it's based on Ubuntu, so it looks like this should fix it 🤞

anarchy1923 commented 1 month ago

Thanks @ralacerda. Yes, I'm running PopOS but it's based on Ubuntu, so it looks like this should fix it 🤞

@kanishkdudeja I got it to work by changing the permissions mentioned by @ralacerda . Cheers to both of you. Can finally overcome that little bit of friction of opening notion through the browser, haha. image

anarchy1923 commented 1 month ago

I fixed by enabling the following on FlatSeal:

image

Are you guys all running Ubuntu? Maybe there was a change in permission that blocked access to those resources.

Yup, using Pop!_OS which is Ubuntu based. Got it to work thanks to you.

ENTPRESTIGIOUS commented 1 month ago

I fixed by enabling the following on FlatSeal:

image

Are you guys all running Ubuntu? Maybe there was a change in permission that blocked access to those resources.

Works on openSUSE Tumbleweed. Thanks so much!

brunofin commented 1 month ago

Hi thanks for looking into it. I'll push a new version with the permission fixes asap. Regards, Bruno Finger

On Wed, 18 Sept 2024, 3:43 am E1337 NOTORඞOUS The PRESTඞGඞOUS, < @.***> wrote:

I fixed by enabling the following on FlatSeal:

[image: image] https://private-user-images.githubusercontent.com/19380403/368194912-ba40f101-7c74-4a00-af6b-98dbabb3ce64.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjY2MjM4MjUsIm5iZiI6MTcyNjYyMzUyNSwicGF0aCI6Ii8xOTM4MDQwMy8zNjgxOTQ5MTItYmE0MGYxMDEtN2M3NC00YTAwLWFmNmItOThkYmFiYjNjZTY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTE4VDAxMzg0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1NzE3NmFkYWI5YTQxZDU0ZDdiNDFmYWM0ZDVjZDg3MTJmOWEwZmE2MDk1NmI4NTdmMmM4OTBlYTk2ZjdkOGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pCt3c6oJ_pSOGiNBe6UZFHXixj7FqBOthc_Y5I32c1U

Are you guys all running Ubuntu? Maybe there was a change in permission that blocked access to those resources.

Works on openSUSE Tumbleweed. Thanks so much!

— Reply to this email directly, view it on GitHub https://github.com/brunofin/cohesion/issues/29#issuecomment-2357319661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5T7NKNQOUUQ4KJAJMDI63ZXDLEPAVCNFSM6AAAAABOETJ3HSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJXGMYTSNRWGE . You are receiving this because you were mentioned.Message ID: @.***>

kanishkdudeja commented 1 month ago

Thanks everyone, I was able to fix this as well by enabling D-Bus Session Bus, D-Bus System Bus and GPU acceleration in Flatseal settings for the Cohesion app.

brunofin commented 1 month ago

here's the dbus logs from the flatpak run

flatpak run --log-session-bus io.github.brunofin.Cohesion
C1: -> org.freedesktop.DBus call org.freedesktop.DBus.Hello at /org/freedesktop/DBus
C2: -> org.freedesktop.DBus fake AddMatch for org.kde.StatusNotifierWatcher
C3: -> org.freedesktop.DBus fake GetNameOwner for org.kde.StatusNotifierWatcher
C4: -> org.freedesktop.DBus fake AddMatch for com.canonical.indicator.application
C5: -> org.freedesktop.DBus fake GetNameOwner for com.canonical.indicator.application
C6: -> org.freedesktop.DBus fake wildcarded AddMatch for io.github.brunofin.Cohesion
C7: -> org.freedesktop.DBus fake wildcarded AddMatch for org.freedesktop.portal
C8: -> org.freedesktop.DBus fake wildcarded AddMatch for org.mpris.MediaPlayer2.io.github.brunofin.Cohesion
C9: -> org.freedesktop.DBus fake AddMatch for org.ayatana.indicator.application
C10: -> org.freedesktop.DBus fake GetNameOwner for org.ayatana.indicator.application
C11: -> org.freedesktop.DBus fake ListNames
B-1: <- org.freedesktop.DBus return from C1
B-1: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameAcquired at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return from C2
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C3
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C4
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C5
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C6
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C7
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C8
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C9
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C10
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C11
C12: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.DBus
C13: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Desktop
C14: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Documents
C15: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Flatpak
C16: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.IBus
C17: -> org.freedesktop.DBus fake GetNameOwner for org.kde.StatusNotifierWatcher
*SKIPPED*
C18: -> org.freedesktop.portal.Flatpak call org.freedesktop.DBus.Properties.Get at /org/freedesktop/portal/Flatpak
B-1: <- org.freedesktop.DBus return from C12
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C13
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C14
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C15
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C16
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C17
*SKIPPED*
B186: <- :1.106 return from C18
C19: -> org.freedesktop.portal.Flatpak call org.freedesktop.DBus.Properties.Get at /org/freedesktop/portal/Flatpak
B187: <- :1.106 return from C19
C1: -> org.freedesktop.DBus call org.freedesktop.DBus.Hello at /org/freedesktop/DBus
C2: -> org.freedesktop.DBus fake AddMatch for org.kde.StatusNotifierWatcher
C3: -> org.freedesktop.DBus fake GetNameOwner for org.kde.StatusNotifierWatcher
C4: -> org.freedesktop.DBus fake AddMatch for com.canonical.indicator.application
C5: -> org.freedesktop.DBus fake GetNameOwner for com.canonical.indicator.application
C6: -> org.freedesktop.DBus fake wildcarded AddMatch for io.github.brunofin.Cohesion
C7: -> org.freedesktop.DBus fake wildcarded AddMatch for org.freedesktop.portal
C8: -> org.freedesktop.DBus fake wildcarded AddMatch for org.mpris.MediaPlayer2.io.github.brunofin.Cohesion
C9: -> org.freedesktop.DBus fake AddMatch for org.ayatana.indicator.application
C10: -> org.freedesktop.DBus fake GetNameOwner for org.ayatana.indicator.application
C11: -> org.freedesktop.DBus fake ListNames
B-1: <- org.freedesktop.DBus return from C1
B-1: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameAcquired at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return from C2
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C3
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C4
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C5
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C6
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C7
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C8
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C9
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C10
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C11
C12: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.DBus
C13: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Desktop
C14: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Documents
C15: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Flatpak
C16: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.IBus
C17: -> org.freedesktop.DBus fake GetNameOwner for org.kde.StatusNotifierWatcher
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C12
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C13
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C14
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C15
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C16
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C17
*SKIPPED*
C18: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return from C18
C19: -> org.freedesktop.portal.Flatpak call org.freedesktop.portal.Flatpak.Spawn at /org/freedesktop/portal/Flatpak
B189: <- :1.106 return from C19
B190: <- :1.106 signal org.freedesktop.portal.Flatpak.SpawnStarted at /org/freedesktop/portal/Flatpak
[3:1009/214427.733391:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
LaunchProcess: failed to execvp:
xdg-settings
brunofin commented 1 month ago

I am not entirely sure what dbus access exactly it needs but I can't build a flatpak with full access to system and session DBus without specifying restrictions to exactly which access in DBus I need.

The build fails with

"finish-args-arbitrary-dbus-access: finish-args has socket access to full system or session bus"

https://docs.flatpak.org/en/latest/sandbox-permissions.html#d-bus-access

brunofin commented 1 month ago

I have added access to org.freedesktop.portal.Flatpak portal.