Page 1 of 1

permissions issues

Posted: Wed Oct 22, 2014 6:29 pm
by Phil-T
I seem to be having permission problems with an install of qbittorrent on a Nokia N810 tablet (runs fine with root permissions) I have checked against an installation on a laptop and execution rights and file ownerships seem comparable. I have checked the following:

/usr/bin/qbittorrent
~/.config/qBittorrent/
~/qBT_dir

and the download folder

are there any other files/folders I need to look at?

The problems I have are:

When starting, I have a popup box with an I/O error message
file save state does not seem to be working (downloads have to be checked before resuming)
search functionality not working

any ideas would be appreciated :)

Re: permissions issues

Posted: Wed Oct 22, 2014 7:39 pm
by sledgehammer_999
About the first error:
Search for a folder named "BT_backup". It is in a subfolder somewhere in your home. Check that its permissions allow your user read and write access. Check also the permissions of its files.
If the error persists, try launching qbt from the terminal by issuing just "qbittorrent".

For the second error: Have you set a specific port in the settings?

Search errors: They are fixed. Wait for v3.1.11 release (in a few hours).

Re: permissions issues

Posted: Wed Oct 22, 2014 10:21 pm
by Phil-T
Thanks for your reply. and your helpful advice :)

launching from terminal I got the following error:

Could not parse Nova search engine capabilities, msg:
Error: /usr/bin/python: can't open file '/usr/share/mime/data/qBittorrent/nova/nova2.py':
[Errno 2] No such file or directory

and indeed there is no such file or directory
however, in ~/.local/share/data/qBittorrent/ I have:

BT_backup/
nova/
search_engine/

copying nova/ to /usr/share/mime/data/qBittorrent/ gets the search function working as user :)

creating my own launcher seems to have removed the I/O error box on startup :)

the only thing I have yet to figure out is the torrent checking whenever I restart, but I can live with that for now.

Re: permissions issues

Posted: Wed Oct 22, 2014 10:48 pm
by sledgehammer_999
I just released v3.1.11 can you compile and try with that?
the only thing I have yet to figure out is the torrent checking whenever I restart, but I can live with that for now.
What do you mean by this?

Re: permissions issues

Posted: Fri Oct 24, 2014 9:05 pm
by Phil-T
I think I have figured out the cause of the problems on my tablet.

The I/O error box message is caused by the qBittorrent.desktop file. I have to change the third line in that file from:

Code: Select all

Exec=qbittorrent %U
To:

Code: Select all

Exec=qbittorrent
I'm guessing that the system is trying to open the file %U with the executable qbittorrent (which of course it can't do)

The other errors (search not working, no fastrusume) are because qBittorrent is looking for the necassary files in /usr/share/mime/data/qBittorrent/ instead of the user directory, but user does not have write perrmissions there.

I don't understand what I have done to cause this?

When I build qBittorrent, I simply run:

Code: Select all

./configure --prefix=/usr
make
fakeroot make INSTALL_ROOT=/home/phil/builds/3/qbittorrent-3.1.11 install
I install to a temporary folder so I can build a simple .deb package.

v3.1.11 seems to be working ok :)

Re: permissions issues

Posted: Sat Oct 25, 2014 10:21 am
by sledgehammer_999
Probably your system doesn't follow corrrectly the Desktop Entry Specification. Look here for the Exec= key: http://standards.freedesktop.org/deskto ... 01s06.html
Also I am confused: Does v3.1.11 solve your search problems or not?

Re: permissions issues

Posted: Sat Oct 25, 2014 2:36 pm
by Phil-T
Hi, sorry for the confusion. Search is working in v3.1.11, but I think my problem with search was because of my device and not the software.