Page 1 of 1

Env variable to XY config dir? / last open tab always saved

Posted: 27 Apr 2010 11:05
by rhoelzl
Hi, I have two problems with XY, I guess it is just a config thing, but I can't figure out how to change the config to fix them:

1.) I have created a custom user button and placed a custom ICO file in the XY config dir. Now the problem is that I sync my XY config over two PCs using Dropbox, and the config dir is located at different places on both machines. So the path to the ICO file is only correct on one machine; on the other some default icon is shown. Is there a possibility to specify a path relative to the config dir for the ICO file?

2.) XY always remembers the last open tab. I have selected "Don't save history" and "Don't save tabs" but it is still doing it. Of course, when the profile is synched over to the other machine, the path is invalid.

Thanks!

Re: Env variable to XY config dir? / last open tab always saved

Posted: 27 Apr 2010 11:56
by zer0
rhoelzl wrote:1.) I have created a custom user button and placed a custom ICO file in the XY config dir. Now the problem is that I sync my XY config over two PCs using Dropbox, and the config dir is located at different places on both machines. So the path to the ICO file is only correct on one machine; on the other some default icon is shown. Is there a possibility to specify a path relative to the config dir for the ICO file?
By "config dir", do you mean the main XYplorer folder or the application data folder (in some situations they can be one and the same location)? You can use <xypath> for the former and <xydata> for the latter :)

Re: Env variable to XY config dir? / last open tab always saved

Posted: 27 Apr 2010 12:20
by admin
rhoelzl wrote:2.) XY always remembers the last open tab. I have selected "Don't save history" and "Don't save tabs" but it is still doing it. Of course, when the profile is synched over to the other machine, the path is invalid.
Try to set a permanent startup path. This will care for the active tab. Caring for the inactive tab is on my list...

ADD:
Actually the way it is now was recently done in accordance with user wishes:

Code: Select all

v8.80.0310 - 2010-02-18 14:54
    * Tabs: Now if "Don't save history" and/or "Don't save tabs" are 
      enabled the active and inactive pane's last paths are remembered 
      and restored on next start.
      Note that Configuration | Startup & Exit | Permanent Startup Path 
      will always overwrite the last path of the active pane.
I'm unsure how to improve it, but I agree there there should be an easy way to forget both startpaths. Maybe another checkbox "forget last paths" or so...

Re: Env variable to XY config dir? / last open tab always saved

Posted: 27 Apr 2010 13:06
by rhoelzl
zer0 wrote:
rhoelzl wrote:1.) I have created a custom user button and placed a custom ICO file in the XY config dir. Now the problem is that I sync my XY config over two PCs using Dropbox, and the config dir is located at different places on both machines. So the path to the ICO file is only correct on one machine; on the other some default icon is shown. Is there a possibility to specify a path relative to the config dir for the ICO file?
By "config dir", do you mean the main XYplorer folder or the application data folder (in some situations they can be one and the same location)? You can use <xypath> for the former and <xydata> for the latter :)
<xydata> works, thanks! :D

Re: Env variable to XY config dir? / last open tab always saved

Posted: 27 Apr 2010 13:11
by rhoelzl
admin wrote:Try to set a permanent startup path. This will care for the active tab. Caring for the inactive tab is on my list...
I have set a permanent startup path to %computer%, but it is still happening; maybe it has something to do with inactive tabs, not sure about that.
I'm unsure how to improve it, but I agree there there should be an easy way to forget both startpaths. Maybe another checkbox "forget last paths" or so...
I believe I have said this before; my favorite behaviour would be the following:

1. If NO path has been given to XY by command line argument, open the permanent startup path.
2. If via command line some path has been passed to the program, open that path, but DO NOT open the permanent startup path

(in other words: command line overwrites permanent startup path).

But in any case I do not want it to remember any paths, because as I said that does not work well with my Dropbox setup.

Re: Env variable to XY config dir? / last open tab always saved

Posted: 27 Apr 2010 13:45
by admin
rhoelzl wrote:
admin wrote:Try to set a permanent startup path. This will care for the active tab. Caring for the inactive tab is on my list...
I have set a permanent startup path to %computer%, but it is still happening; maybe it has something to do with inactive tabs, not sure about that.
I'm unsure how to improve it, but I agree there there should be an easy way to forget both startpaths. Maybe another checkbox "forget last paths" or so...
I believe I have said this before; my favorite behaviour would be the following:

1. If NO path has been given to XY by command line argument, open the permanent startup path.
2. If via command line some path has been passed to the program, open that path, but DO NOT open the permanent startup path

(in other words: command line overwrites permanent startup path).

But in any case I do not want it to remember any paths, because as I said that does not work well with my Dropbox setup.
I agree, makes sense. Next version will be better:

Code: Select all

    * Configuration | Startup & Exit | Don't save tabs: Now with this 
      setting enabled also the last paths of each pane are forgotten and 
      on next start will be initialized to MyComputer.
      If you want to forget the tabs but keep the last paths of each 
      pane use this new tweak:
        KeepLastPaths=1

Re: Env variable to XY config dir? / last open tab always saved

Posted: 27 Apr 2010 19:10
by rhoelzl
Have installed the newest beta, forgetting works well now, thanks!