GithubHelp home page GithubHelp logo

Off-line sync about lotion HOT 26 OPEN

xzavrel avatar xzavrel commented on May 25, 2024
Off-line sync

from lotion.

Comments (26)

endriu84 avatar endriu84 commented on May 25, 2024 13

As for "no icon in dock" issue (It was on my ubuntu 18.04), I just change:
StartupWMClass=lotion
to
StartupWMClass=Notion
in my ~/.local/share/applications/Lotion.desktop
Hope it helps someone!

from lotion.

puneetsl avatar puneetsl commented on May 25, 2024 11

It's not a technology issue, the app that Notion made for Mac and Windows work in Linux as well. I'll explain the steps later in this conversation. However, spell-check does not work(though you can switch it off). One thing to note is Notion's offline mode is less than desirable, but sometimes useful. For this reason I have configured both application (Native Notion and Lotion) on my Linux.
image

Native Notion does not have tray icon(which I find very useful), also have Menu which you can not hide, while in Lotion you can hide and see menu at any time by pressing Alt.
image
Vs
image

So, if anyways you want Native Notion app, just Download the Windows app from their webpage.
Next, Extract the exe like this:
image
Now go in extracted folder in the following location Notion Setup 0.3.0/$PLUGINSDIR/app-64/resources/
Next, copy app.asar and paste it to lotion's Notion/resources folder.
Lastly, rename old app folder to something other than app
That's it, now next time when you will open Notion you will see native UI

Let me know how it goes, and if you get it to work we can close this issue.

Thanks

from lotion.

BachoSeven avatar BachoSeven commented on May 25, 2024 5

@sanjaygeeky It looks like the installation was succesful, you just need to launch the app from inside the Lotion folder I guess. If you want to have a menu icon pop up in the
ubuntu app menu, you'll probably have to move Lotion.desktop to ~/.local/share/applcations.

from lotion.

pbredenberg avatar pbredenberg commented on May 25, 2024 3

I was able to get Notion desktop running on Ubuntu 19.04 without issues using this method. I'll report back if anything strange happens.

from lotion.

jeremy273 avatar jeremy273 commented on May 25, 2024 3

Hi, I'm getting issues with both lotion and native lotion. When I finally got the install.sh to execute, (which was not trivial with lots of permission errors and file does not exist errors) I am able to open a desktop version of lotion (without a desktop icon), but I need to log in every time. I get an error in the app that says:

"Cannot save my changes. You can no longer make edits: Cannot open IndexedDB. Your chrome profile may be damaged."

I tried getting native notion using the above method and was able to move the app.asar to the correct folder, but I still don't have a desktop application for native notion. I should note that I needed to manually move the lotion.desktop to my /usr/share/applications in order for notion to open outside of the terminal. Any tips here? Notion is my favorite productivity app and I recently started using linux.

from lotion.

BachoSeven avatar BachoSeven commented on May 25, 2024 3

Related: check out this for a prebuilt .deb package of the native windows app.

from lotion.

RyanRix avatar RyanRix commented on May 25, 2024 1

Thanks @puneetsl that worked fine. It seems to be all OK now. I was running the web client (and sometimes the Windows client on a virtual machine) but this looks the best way.

from lotion.

sanjaygeeky avatar sanjaygeeky commented on May 25, 2024 1

Hey Bacho I have got the solution you install the native notion app and thats all post unistalling the notion app.

from lotion.

sanjaygeeky avatar sanjaygeeky commented on May 25, 2024 1

hi there
I've run both the install and install native commands - there are no errors.
But i cannot get Lotion or Notion to run. There doesn't seem to be an applications folder in:
./local/share - and I'm not sure what to put there beyond creating the folder 'applications'
Any assistance would be great!

Hey Ryan make a copy of Lotion.desktop say Lotion.desktopcp. Copy/Move the Lotion.desktop from /lotion to cp Lotion.desktop ~/.local/share/applications Check now. It will appear as Lotion. edit the desktop file to change Name[en_US]=Lotion
to Name[en_US]=Notion
Hope this helps

from lotion.

RyanRix avatar RyanRix commented on May 25, 2024

Hi, I am also running Ubuntu 19.04 but I can't extract the exe file - 'An error occurred while loading the archive'. Any idea why this might be?
I was able to (accidentally) install with wine, and it now mostly works (most of the built-in icons are missing, and pdfs won't open fully). So, not the end of the world.

from lotion.

puneetsl avatar puneetsl commented on May 25, 2024

@RyanRix I think you need to install 7z and unrar

I think you can do that using
sudo apt install p7zip-rar
and/or
sudo apt install unrar

and then you can extract certain exes and mainly Notion's executable

from lotion.

tiagobnobrega avatar tiagobnobrega commented on May 25, 2024

Can't make it work. It gets "stuck" trying to update or something on every minute:

17:47:43.666 › Checking for app update
17:47:44.063 › No app update available
17:48:44.067 › Checking for app update
17:48:44.421 › No app update available
17:49:44.434 › Checking for app update
17:49:44.708 › No app update available
17:50:44.719 › Checking for app update
17:50:45.009 › No app update available
17:51:45.022 › Checking for app update
17:51:45.322 › No app update available

Maybe it's some aditional check on new release

from lotion.

puneetsl avatar puneetsl commented on May 25, 2024

Yup, they have added this check for updates for specific operating systems and since it is not supported on Linux you would go in an infinite loop :)
There are ways to hack the contents of asar to stop doing that but I would not advise doing that. Let it be and use the app without offline access.

from lotion.

yenson-lau avatar yenson-lau commented on May 25, 2024

Does this mean offline access is unavailable for this app?

from lotion.

puneetsl avatar puneetsl commented on May 25, 2024

I have updated the app, all the above steps worked for me. Try again if you want to have native notion.

image

from lotion.

tiagobnobrega avatar tiagobnobrega commented on May 25, 2024

It seems to be working for me. Thx @puneetsl. For anyone having trouble, make sure to follow the instructions correctly
The logo is not showing up on docker, but besides that, it seems to be working fine

from lotion.

pan-Rijovich avatar pan-Rijovich commented on May 25, 2024

How to repair it:
internal/modules/cjs/loader.js:686
throw err;
^

Error: Cannot find module '/home/pan_rijovic/Загрузки/lotion-
master/Lotion/resources/electron.asar/browser/init.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:683:15)
at Function.Module._load (internal/modules/cjs/loader.js:601:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:904:10)
at internal/main/run_main_module.js:24:11

from lotion.

JionneLizardo avatar JionneLizardo commented on May 25, 2024

It's not a technology issue, the app that Notion made for Mac and Windows work in Linux as well. I'll explain the steps later in this conversation. However, spell-check does not work(though you can switch it off). One thing to note is Notion's offline mode is less than desirable, but sometimes useful. For this reason I have configured both application (Native Notion and Lotion) on my Linux.
image

Native Notion does not have tray icon(which I find very useful), also have Menu which you can not hide, while in Lotion you can hide and see menu at any time by pressing Alt.
image
Vs
image

So, if anyways you want Native Notion app, just Download the Windows app from their webpage.
Next, Extract the exe like this:
image
Now go in extracted folder in the following location Notion Setup 0.3.0/$PLUGINSDIR/app-64/resources/
Next, copy app.asar and paste it to lotion's Notion/resources folder.
Lastly, rename old app folder to something other than app
That's it, now next time when you will open Notion you will see native UI

Let me know how it goes, and if you get it to work we can close this issue.

Thanks

How did you configure both applications or you just separated both Notion installations. Thanks

from lotion.

iAmG-r00t avatar iAmG-r00t commented on May 25, 2024

Hi trying to do this but it seems like it doesn't work in the lotion folder I can only see Lotion/resources/app so do you want us to create a new folder named Notion/resources in the lotion folder or rename the folder app in lotion/Lotion/resources to something else then place the app.asar inside lotion/Lotion/resources.

Because I can't see Notion folder inside lotion folder.

Kindly assist, I would really love to have the offline mode for moments when my PC is offline.

from lotion.

iAmG-r00t avatar iAmG-r00t commented on May 25, 2024

Thank you @BachoSeven, let me give it a try :)

from lotion.

mschmidm avatar mschmidm commented on May 25, 2024

As for "no icon in dock" issue (It was on my ubuntu 18.04), I just change:
StartupWMClass=lotion
to
StartupWMClass=Notion
in my ~/.local/share/applications/Lotion.desktop
Hope it helps someone!

Worked for a similar issue i faced: On my Zorin OS 15.2 (Ubuntu based) there was no notion icon anymore but a default icon that wasn't grouped with the Notion launcher icon in the dock.
Thanks!

from lotion.

sanjaygeeky avatar sanjaygeeky commented on May 25, 2024

Hello
I am not able to install the notion on Ubuntu 20 latest
Can you please guided me where I and going wrong.
All steps followed and the last one in my home dir
sudo ./install.sh All files were Ok. No errors.

image

from lotion.

sanjaygeeky avatar sanjaygeeky commented on May 25, 2024

Thanks. This is done. Now how to invoke the app ? as this installtion goes to internet

from lotion.

BachoSeven avatar BachoSeven commented on May 25, 2024

I'm afraid I didn't really understand your last comment. If you mean how to launch the application, try to open it from the menu, it should be there now. With regards to offline
usage, have a look in the README's installation section for instructions on installing the "native" version, or try out an
alternative solution like the one I mentioned above

from lotion.

franva avatar franva commented on May 25, 2024

Hi guys, adding my 2cents here.

When I cloned this repo and run ./install.sh, it threw an error:


./install.sh
bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

After searching for a while, it turns out the issue is caused by writing the script in Windows env and trying to run it in Linux env.

A super easy way to make it work is to use dos2unix (it can be easily installed by sudo apt install dos2unix)

cd into the folder where you have the code, then

dos2unit *.sh

then run the ./install.sh

Hope it helps.

Thanks for @puneetsl for the great efforts to port Notion in Ubuntu

Cheers,
Winston

from lotion.

ryanpurvis avatar ryanpurvis commented on May 25, 2024

hi there
I've run both the install and install native commands - there are no errors.
But i cannot get Lotion or Notion to run. There doesn't seem to be an applications folder in:
./local/share - and I'm not sure what to put there beyond creating the folder 'applications'
Any assistance would be great!

from lotion.

Related Issues (20)

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.