Made some changes (store default path)
# BEGIN proposed changes
# check if saved directory exists
line=""
if os.path.exists('defaultdir.txt'):
# if file exists load its content
f = open('defaultdir.txt','r+')
line = f.readline()
if line=="":
# if the file is empty, then default is home directory
line="~"
f.close()
rootdir_pipe = os.popen('kdialog --title "Save file(s) in..." --getexistingdirectory '+ line)
root_dir = rootdir_pipe.read().strip()
print root_dir
f = open('defaultdir.txt','w')
# save selected path
f.write(root_dir)
f.close()
# END of proposed changes
Hi Hirs.
First of all, thanks for this app. It's great!
Secondly, I have to inform you of a little bug in the script: it can't download files which have a ! symbol on their name. Try giving it a go.
Thanks for the development of this service menu.
i like the program, good work, i haven't seen anything like that for OSX or windows before.
But it would be quite more handy, if the program remembered where I saved the last vid.
thx
What a big "project". It's just a very small script. It makes no sense to treat it like a real project. My improved version has 94 LOC, including the GPL license block.
Ratings & Comments
7 Comments
Made some changes (store default path) # BEGIN proposed changes # check if saved directory exists line="" if os.path.exists('defaultdir.txt'): # if file exists load its content f = open('defaultdir.txt','r+') line = f.readline() if line=="": # if the file is empty, then default is home directory line="~" f.close() rootdir_pipe = os.popen('kdialog --title "Save file(s) in..." --getexistingdirectory '+ line) root_dir = rootdir_pipe.read().strip() print root_dir f = open('defaultdir.txt','w') # save selected path f.write(root_dir) f.close() # END of proposed changes
Hi Hirs. First of all, thanks for this app. It's great! Secondly, I have to inform you of a little bug in the script: it can't download files which have a ! symbol on their name. Try giving it a go. Thanks for the development of this service menu.
i like the program, good work, i haven't seen anything like that for OSX or windows before. But it would be quite more handy, if the program remembered where I saved the last vid. thx
it works for me
It still didn't work for me, so I made some changes: http://www.kde-apps.org/content/show.php?content=41456
panzi, instead of opening your own project you could help Hirs to improve his one. that would be much more constructive!
What a big "project". It's just a very small script. It makes no sense to treat it like a real project. My improved version has 94 LOC, including the GPL license block.