Hello everyone I've always liked xdman but the fact that it use the home directroy to store it's dotfile annoyed the hell out of me
anyway I will spare you the painful story of how I fixed this problem you just need to modify a line in your /opt/xdman/xdman file
this is the executable file for xdman but if you inspect it it's just a bash script that contain this line:
/opt/xdman/jre/bin/java -Dsun.java2d.xrender=false -Xmx1024m -jar /opt/xdman/xdman.jar
we will change it to this:
/opt/xdman/jre/bin/java -Xshareclasses:cacheDir=$CUSTOM_LOCATION -Duser.home=$CUSTOM_LOCATION -Dsun.java2d.xrender=false -Xmx1024m -jar /opt/xdman/xdman.jar
Note the CUSTOM_LOCATION variable this of course will need to be set to whatever custom location you wanna use in my case I put my dotfile in the $HOME/.config/xdman directory which should have been the default but whatever
Note also that we moved the home directory that xdman sees to another location that mean downloads won't be put in the $HOME/Download folder to fix this create a symbolic link with this command:
ln -s $HOME/Download $CUSTOM_LOCATION/Download
And note that I'm assuming you are on linux that's because that's what I'm running if you are on windows you can try to find the xdman.jar file and execute it from the commandprompt with regular java(you can install it from the internet if you don't have it) using this command:
java -Xshareclasses:cacheDir=C:\CUSTOM\LOCATION -Duser.home=C:\CUSTOM\LOCATION -Dsun.java2d.xrender=false -Xmx1024m -jar C:..\xdman.jar
But I don't think windows users care about dotfiles anyway.
I wanna thank the devs for their work and I also suggest that they should start respecting the XDG standard and move their dotfile to their appropriate XDG folder.
Last edit: nemya9066@gmail.com 2020-05-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone I've always liked xdman but the fact that it use the home directroy to store it's dotfile annoyed the hell out of me
anyway I will spare you the painful story of how I fixed this problem you just need to modify a line in your /opt/xdman/xdman file
this is the executable file for xdman but if you inspect it it's just a bash script that contain this line:
/opt/xdman/jre/bin/java -Dsun.java2d.xrender=false -Xmx1024m -jar /opt/xdman/xdman.jar
we will change it to this:
/opt/xdman/jre/bin/java -Xshareclasses:cacheDir=$CUSTOM_LOCATION -Duser.home=$CUSTOM_LOCATION -Dsun.java2d.xrender=false -Xmx1024m -jar /opt/xdman/xdman.jar
Note the CUSTOM_LOCATION variable this of course will need to be set to whatever custom location you wanna use in my case I put my dotfile in the $HOME/.config/xdman directory which should have been the default but whatever
Note also that we moved the home directory that xdman sees to another location that mean downloads won't be put in the $HOME/Download folder to fix this create a symbolic link with this command:
ln -s $HOME/Download $CUSTOM_LOCATION/Download
And note that I'm assuming you are on linux that's because that's what I'm running if you are on windows you can try to find the xdman.jar file and execute it from the commandprompt with regular java(you can install it from the internet if you don't have it) using this command:
java -Xshareclasses:cacheDir=C:\CUSTOM\LOCATION -Duser.home=C:\CUSTOM\LOCATION -Dsun.java2d.xrender=false -Xmx1024m -jar C:..\xdman.jar
But I don't think windows users care about dotfiles anyway.
I wanna thank the devs for their work and I also suggest that they should start respecting the XDG standard and move their dotfile to their appropriate XDG folder.
Last edit: nemya9066@gmail.com 2020-05-23