Skip to content
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

Dropbox icons #20

Closed
bilelmoussaoui opened this issue May 27, 2015 · 12 comments
Closed

Dropbox icons #20

bilelmoussaoui opened this issue May 27, 2015 · 12 comments

Comments

@bilelmoussaoui
Copy link
Owner

Hello
I did push a new update for dropbox fixes
but there's still something to do:
the dropbox folder name is something like this dropbox-lnx.x86_64-3.6.4
so i did this in the db.csv file

dropbox,{userhome}/.dropbox-dist/dropbox-lnx{*}/images/hicolor/16x16/status

so i have to remplace the {*} with the dropbox folder that starts with dropbox-lnx :P
and i don't have any idea how to do this
Any ideas?

@andia89
Copy link
Collaborator

andia89 commented May 27, 2015

In the script? Or in db.csv

@bilelmoussaoui
Copy link
Owner Author

In the script

@andia89
Copy link
Collaborator

andia89 commented May 27, 2015

Ah so it depends on the dropbox version and if one uses 32bit or 64 bit...

@bilelmoussaoui
Copy link
Owner Author

Yeah i was thinking about getting the only folder that is in .dropbox-dist

@andia89
Copy link
Collaborator

andia89 commented May 27, 2015

Ah that's a hard one. Something with os.walk('dropbox-lnx.') should work but that needs some rewriting

@bilelmoussaoui
Copy link
Owner Author

This will be fixed in the next commit

@bilelmoussaoui
Copy link
Owner Author

@wa4557 can you check this please? :)
in the dropbox_folder fonction there's something that is not working
the result of sub_dirs is None and i really don't have any idea
and the result of dirs is

['/home/bilal/.dropbox-dist/', '/images/hicolor/16x16/status']

@andia89
Copy link
Collaborator

andia89 commented May 27, 2015

Yeah you made a standard python error :)
replace line 71&72 with

sub_dirs = os.listdir(""+dirs[0])
sub_dirs.sort()

sub_dirs.sort() has no return value, but it changes the list in place

@bilelmoussaoui
Copy link
Owner Author

Ah yeah! i forgot about this ,thanks i will push an update

@bilelmoussaoui
Copy link
Owner Author

I can close this now ;) Thank you very much @wa4557

@andia89
Copy link
Collaborator

andia89 commented May 27, 2015

You missed a print(row[1])

@bilelmoussaoui
Copy link
Owner Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants