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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

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

Post 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!

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

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

Post 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 :)
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 66351
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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...

rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

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

Post 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

rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

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

Post 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.

admin
Site Admin
Posts: 66351
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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

rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

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

Post by rhoelzl »

Have installed the newest beta, forgetting works well now, thanks!

Post Reply