JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 26.08.2017, 13:36
denywinarto denywinarto is offline
Ultra Loader
 
Join Date: Mar 2015
Posts: 49
Default 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
Reply With Quote
  #2  
Old 28.08.2017, 15:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

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
Reply With Quote
  #3  
Old 28.08.2017, 15:30
askin2u askin2u is offline
Fibre Channel User
 
Join Date: Mar 2015
Posts: 128
Default

Quote:
Originally Posted by Jiaz View Post
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.
could be similar to this?
Reply With Quote
  #4  
Old 28.08.2017, 17:16
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

Will be added with next core update

<jd:env:VARIABLE>
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 29.08.2017, 08:48
denywinarto denywinarto is offline
Ultra Loader
 
Join Date: Mar 2015
Posts: 49
Default

Quote:
Originally Posted by Jiaz View Post
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.
Wow that was quick
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?
Reply With Quote
  #6  
Old 29.08.2017, 09:52
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

Quote:
Originally Posted by Jiaz View Post
Will be added with next core update

<jd:env:VARIABLE>
You have to use <jd:env:%user%>
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 29.08.2017, 13:05
denywinarto denywinarto is offline
Ultra Loader
 
Join Date: Mar 2015
Posts: 49
Default

Quote:
Originally Posted by Jiaz View Post
You have to use <jd:env:%user%>
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.
Reply With Quote
  #8  
Old 29.08.2017, 13:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

Found an issue, wait for next core update
then use <jd:env:user>
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 30.08.2017, 04:05
denywinarto denywinarto is offline
Ultra Loader
 
Join Date: Mar 2015
Posts: 49
Default

Still not fixed yet with 37710 i presume?
Gonna keep track for core update then.
thanks
Reply With Quote
  #10  
Old 30.08.2017, 05:08
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

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. :]
Reply With Quote
  #11  
Old 30.08.2017, 11:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

Wait for next core update. The use case of yours is different than what I implemented
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 31.08.2017, 02:53
denywinarto denywinarto is offline
Ultra Loader
 
Join Date: Mar 2015
Posts: 49
Default

Seems to be working now, thanks Jiaz!
looks like the correct syntax for calling username is <jd:env:username>
Reply With Quote
  #13  
Old 31.08.2017, 09:50
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:13.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.