mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #6601] [Bug] Appimage Login #2898
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#2898
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Logic-gate on GitHub (Oct 22, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6601
Originally assigned to: @khorshuheng on GitHub.
Bug Description
When trying to login via a magic-link or OAuth, users are either sent a link via email, or taken to the said service to login through it via the browser. Both scenarios will yield an
open with xdg-openwhen prompted.Adding the mimetype
x-scheme-handler/appflowy-flutterin.config/mimeapps.listdoes result in a correct link to AppFlowy when prompted..config/mimeapps.listWhere
appflowy.desktopis as follows:However, this will still lead to an issue where AppFlowy does not respond to the access token. Following https://github.com/AppFlowy-IO/AppFlowy/issues/5651#issuecomment-2370820785 solution, and manually grabbing the access token and executing AppFlowy will result in a buffer overflow.
The hacky way around this for magic-links is to delete both
&expires_atandexpires_infrom the access token.How to Reproduce
Attempt to login using the AppImage
Expected Behavior
Normal login process
Operating System
Solus OS
AppFlowy Version(s)
0.7.1
Screenshots
No response
Additional Context
No response
@GrahamJenkins commented on GitHub (Jan 14, 2025):
I am a linux user attempting to test appflowy and encountered this as well. I was confused about being unable to perform any editing on web and attempted to install, but am currently unable to even log in. While I see a lot of potential for a Trello/Notion clone, it doesn't give me a lot of confidence when I can't even log in and test properly.
I'll admit that I didn't go as far as to create the .desktop file, and am not familiar with the .mimeapps config, but if this is required to use the program on linux, there needs to be clear instructions on how to do this.
Or, at bare minimum provide a reasonable way to import the OAuth/email link directly into the app. Or say...support standard email/password authentication directly. At least as an option.
@Logic-gate commented on GitHub (Jan 29, 2025):
@GrahamJenkins Since this was labelled as a bug, I am sure it'll be sorted out. I haven't tested newer versions.
@Logic-gate commented on GitHub (Feb 2, 2025):
@GrahamJenkins Try this:
https://ki.tc/file/stream/cde22
If you want a better solution, I suggest preparing your Appimage env.
I have it setup in
.local/share/appimageYou will need to add mimeapps defaults. This will map the
appflowy-flutterhandler to a desktop file.in
.config/mimeapps.listadd the following at the bottom, under[Default Applications]in
/usr/share/applicationscreateappflowy.desktop. Make sure Exec is a full path with USER being your user.create
/home/USER/.local/bin/appflowy-wrapperand give it exec permissions.Create a dir under
/home/USER/.local/share/and name itappimageDownload whatever version of Appflowy to
appimageand give it exec permissions withchmod +xNow whenever you update Appflowy and request a magiclink, you can simply click on the redirect link from the browser and it will open the app.
This might seem as a convoluted approach, but it's a one time thing. You can change the dir to whatever you want as long as everything is linked correctly.
I hope this helps.
Cheers,
@GrahamJenkins commented on GitHub (Feb 12, 2025):
Thanks for the detailed instructions, I'll see if I can try this later. I see you have a workaround to resolve the buffer overflow as well, that's good to see. If course it would be nicer to see that the appimg handles these things on its own, but we'll just go one step at a time.
@VladKilliakov commented on GitHub (Mar 9, 2025):
@GrahamJenkins I experienced the same issue as the OP leading to being unable to logic using magic link on Linux (Ubuntu 24.10). I tried the approach that you described and it fixed the issue for me!
Hopefully, the future versions of the app will add proper integration of this into the AppImage executable as well. I'd be happy to help out with this as well, if any help is needed.
@Logic-gate commented on GitHub (Mar 12, 2025):
@VladKilliakov In my opinion, the ideal way to fix this issue is via identifying and patching the buffer overflow issue. We can then focus on the xdg handler definition for proper xdg-open.
If however the devs decide to patch the custom wrapper script to handle argument pass through, I'll have a look as to how we can add the wrapper script in the Appimage.
@annieappflowy ping.
@Logic-gate commented on GitHub (Mar 23, 2025):
Possible cause and potential fix.
This might be related to a bug in AppImage's runtime. There's an open PR(https://github.com/AppImage/type2-runtime/pull/38).
As for the MIME Type handler. I suggest a post install script that installs the desktop files and adds adequate scheme handling. The desktop file and icon should be in the AppDir.