#1
|
|||
|
|||
Support for environment variables (%user%) for download path
This feature exists in IDM, and is currently missing in JD2,
Would it be possible to support %user% as download path? because this would enhance portability and multi-user usage even more. Thanks |
#2
|
||||
|
||||
JDownloader does not support environment variables at the moment.
We can add *basic* support for it but it will be limited to settings only. That means I will try to add support for some variables in default download folder but they will be replaced at the moment the link lands in Linkgrabber.
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
Will be added with next core update
<jd:env:VARIABLE>
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
Quote:
Appreciate it, but when i tested it with %user% it simply creates this folder C:\Users\%user%\Downloads instead of translating %user% into the current logged user Is it meant to be that way or am i supposed to use another syntax? |
#6
|
||||
|
||||
You have to use <jd:env:%user%>
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Sorry but i still couldn't get it to work:
tried : C:\Users\<jd:env:%user%>\Downloads C:\Users\<jd:env:user>\Downloads Then i noticed the feature page is for packagizer. So is this supposed to work with packagizer? never used it before. What if i want to set the download path C:\Users\%user%\Downloads to be used for all users? Last edited by denywinarto; 29.08.2017 at 13:12. |
#8
|
||||
|
||||
Found an issue, wait for next core update
then use <jd:env:user>
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
Still not fixed yet with 37710 i presume?
Gonna keep track for core update then. thanks |
#10
|
||||
|
||||
its live, but you have to download && install && restart client to be available.
jiaz develops from linux so maybe done limited testing.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#11
|
||||
|
||||
Wait for next core update. The use case of yours is different than what I implemented
__________________
JD-Dev & Server-Admin |
#12
|
|||
|
|||
Seems to be working now, thanks Jiaz!
looks like the correct syntax for calling username is <jd:env:username> |
#13
|
||||
|
||||
Please know that environment variables might be case sensitive, at least on linux. Don't know about windows. The current solution first checks case sensitive and then falls back to case insensitive
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|