liberodark / ODrive

Google Drive GUI for Windows / Mac / Linux
https://liberodark.github.io/ODrive/
GNU General Public License v3.0
1.16k stars 136 forks source link

[BUG] [Error: EACCES: permission denied #126

Open antrrax opened 5 years ago

antrrax commented 5 years ago

Describe the bug odrive does not have permission to access the file: '/home/MY_USER/.config/odrive/db/global.db' software don't work.

To Reproduce Steps to reproduce the behavior: I installed the version: odrive_0.3.0_amd64.deb. I synchronized with the Google Drive account in the cloud and restarted the PC.

In the terminal I launch the program and the message is displayed- which is not allowed to access the file:


$ odrive

/opt/OpenDrive/resources/app.asar/public app started on port 16409 Uncaught exception -13 { [Error: EACCES: permission denied, open '/home/MY_USER/.config/odrive/db/global.db'] errno: -13, code: 'EACCES', syscall: 'open', path: '/home/MY_USER/.config/odrive/db/global.db' }



If I check the option: 'Launch on startup' and restart the PC, the opendrive icon is displayed on the taskbar, but it is not functional because it does not have superuser permission. So if I click on "Preferences ..." opens a blank window.

Desktop (please complete the following information):

antrrax commented 5 years ago

The same error occurs in version 0.2.2

skvasistha commented 5 years ago

try to change the permission of global.db cd .config/odrive/db sudo chmod -777 global.db