[jbosstools-issues] [JBoss JIRA] (JBIDE-17213) Improve the default value of Download folder in the download runtimes wizard

Rob Stryker (JIRA) issues at jboss.org
Mon Aug 25 07:43:59 EDT 2014


     [ https://issues.jboss.org/browse/JBIDE-17213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Stryker resolved JBIDE-17213.
---------------------------------
      Assignee: Rob Stryker  (was: Snjezana Peco)
    Resolution: Done


We currently *do* use java.io.tempdir, but we appear to be saving the value whether the user has changed it or not. So, if a user runs first in an OS where /tmp is valid, and downloads a runtime, it will persist /tmp as the user's choice, and, on next load, will use that saved value rather than the OS default. 

I've made a very small patch to not save the value if the value is equal to the java.io.tempdir value. 

> Improve the default value of Download folder in the download runtimes wizard
> ----------------------------------------------------------------------------
>
>                 Key: JBIDE-17213
>                 URL: https://issues.jboss.org/browse/JBIDE-17213
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: runtime-detection
>    Affects Versions: 4.2.0.Beta1
>         Environment: Kubuntu 13.10
>            Reporter: Lars Heinemann
>            Assignee: Rob Stryker
>             Fix For: 4.2.0.CR1
>
>         Attachments: jbt_downloadruntime.png
>
>
> The download folder defaults to /tmp folder. That is on Kubuntu and maybe Ubuntu as well a bad choice as only root can write to that folder. The folder /var/tmp/ is the better choice on this OS.
> I would propose to use java.io.tmpdir for the default value if possible and check if that is writable for the user. If thats not the case we should have some fallback folder.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list