我已经在我的电脑上安装了门德利桌面(https://www.mendeley.com/download-mendeley-desktop/ubuntu/instructions/)。事实证明,我只能通过终端,通过sudo mendeleydesktop运行程序。如果我尝试从码头运行它,甚至通过没有sudo的终端运行,它就不会运行。它短暂地恒星(0.5秒),但它突然关闭。
当我试图以最后一种方式运行它时,下一条消息将显示在终端中:
/usr/bin/../../opt/mendeleydesktop/bin/install-mendeley-link-handler.sh: 56: /usr/bin/../../opt/mendeleydesktop/bin/install-mendeley-link-handler.sh: cannot create /home/jorge/.local/share/applications//mendeleydesktop.desktop: Permission denied
QIODevice::setTextModeEnabled (QFile, "/home/jorge/.local/share/data/Mendeley Ltd./Mendeley Desktop/log-2016-11-01.txt"): The device is not open
QIODevice::write (QFile, "/home/jorge/.local/share/data/Mendeley Ltd./Mendeley Desktop/log-2016-11-01.txt"): device not open
QSslSocket: cannot resolve SSLv2_client_method
QSslSocket: cannot resolve SSLv2_server_method
Error in finalize query "attempt to write a readonly database" : "BEGIN EXCLUSIVE"
Qt WebEngine Plugins directory not found. Trying fallback directory... Plugins as for example video codecs MAY NOT work.
Error in finalize query "attempt to write a readonly database" : "BEGIN EXCLUSIVE"
Error in open database "unable to open database file" : "/home/jorge/.local/share/data/Mendeley Ltd./Mendeley Desktop/www.mendeley.com/jbecerratg@alumnos.unex.es-5120/search-index.sqlite"
Failed to open search index
Error in prepare query "unable to open database file" : "SELECT value FROM UpdateTokens WHERE key = :key"
Error in bind value "no statement prepared"
Error in execute query "query not prepared"
Error in step query "query not active"
QObject::disconnect: Unexpected null parameter如果你能告诉我如何解决这个问题将是非常有帮助的。我想通过点击图标来运行程序。
提前谢谢。
发布于 2016-11-01 17:41:42
我认为这是不可能的。该程序必须具有超级用户权限。由于程序的设计方式,您必须使用sudo来运行它。
Ubuntu的16.x版本上的文档是不正确的,该软件可能会被更新以满足您的需要。
编辑:我相信最后一行代码:
QObject::disconnect: Unexpected null parameter密码为空(或不存在)
发布于 2016-11-01 19:45:45
您可以使用gksudo命令从ubuntu获得sudo提示符,而不仅仅是sudo。
如果您可以编辑.desktop文件,并从
Exec=[....]mendeleydesktop至
Exec=/usr/bin/gksudo [...]mendeleydesktop在以root用户身份运行密码之前,它应该提示输入密码。
...表示已经存在的任何路径,指向mendeley桌面文件。
https://askubuntu.com/questions/844293
复制相似问题