-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when browsers are installed to a custom directory #20
Comments
related: #16 For now, the simplest solution would be to resolve the symlink to the actual file on disk and read that instead. But, I would rather prefer to implement a long term solution of using XDG based directories along with user provided directories. |
@Flo-Slv Hey, can you please update the extension to the latest commit and try again with |
Also, the way file is read in lua, it seems that the symlinks are resolved by it, so this problem shouldn't rise. There must be something else which is going on. Can you try this code by substituting the path to any symlink which points to a file containing some content? local path = '/path/to/symlink'
local file, err = io.open(path, 'r')
if not file then
return print(err)
end
local content = file:read '*a'
file:close()
print(content) |
I just updated plugins with :PackerSync and now it's working ! Thanks ! I don't really know what's happened... you are right, with symlinks it's working great. But I still have an issue but with... firefox now defs.lua:31: libsqlite3.so cannot open shared object file No such file or directory Do I need to create an symlink too ? since in Ubuntu 22.04, Firefox is installed via snapstore |
This would probably be because the dependencies weren't installed correctly, I'm not really sure. Can you look at https://github.com/kkharji/sqlite.lua and install it as mentioned in it's README with all the C dependencies? If not, this issue needs to be reported in that repository. |
I thought only So I installed defs.lua:683: sqlite.lua counldn't connect to sql database. ERR: unable to open database file Do I need to configure something else with sqlite3 ? Thanks 🙏🏼 |
They both are the same repository, the username was changed.
Ah, yes. This is the problem. I think the extension should've errored before trying to open the database file as I'm getting the profile information from the Can you check if the config directory is present? Location: Also, sorry to ask you again, but please update the extension and share the output. I can reproduce the message on my system only if there is a profile directory but the database file is absent. |
Thanks for your fast reply ! Here is the debug output
So I confirm I have a folder called ls /home/floslv/.mozilla/firefox/
06lhu944.default 0ojxz66h.default-release 'Crash Reports' installs.ini 'Pending Pings' profiles.ini Here is my profiles.ini [Install4F96D1932A9F858E]
Default=0ojxz66h.default-release
Locked=1
[Profile1]
Name=default
IsRelative=1
Path=06lhu944.default
Default=1
[Profile0]
Name=default-release
IsRelative=1
Path=0ojxz66h.default-release
[General]
StartWithLastProfile=1
Version=2 Inside There is no Inside When I search on my files system for |
I found where my Firefox bookmarks are stored I just did a symlink from here to It's working like a charm now ! |
Good to know that! I think there should be a better solution to this problem. Continuing the discussion in #16 (or a new issue?) |
Hey !
My Brave browser is installed with snap store on Ubuntu 22.04.
Bookmarks folder with snap is a bit different:
/home/{user}/snap/brave/current/.config/BraveSofware/Brave-Browser/Default/Bookmarks
So I created a symlink to
/home/{user}/.config/BraveSoftware/Brave-Browser/Default/Bookmarks
But I got this error:
bad argument #1 to 'decode' (string expected, got nil)
Click on pictures for better quality xD
Did I miss something ?
Thanks !
The text was updated successfully, but these errors were encountered: