Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot select default connection file on startup #2563

Open
David-Houser opened this issue Feb 7, 2024 · 3 comments
Open

Cannot select default connection file on startup #2563

David-Houser opened this issue Feb 7, 2024 · 3 comments
Labels
1.77.3 Version 1.77.3 In progress

Comments

@David-Houser
Copy link

I am unable to select a default connection file to open on startup.

I have tried adding the /c: and /cons: parameters, but these do not work.

“C:\Program Files (x86)\mRemoteNG\mRemoteNG.exe” /c:”C:\OneDrive\path\to\config.xml"

There does not seem be an option for this in the mRemote application.

Am I missing something? Is this possible in the current version? I'm using build 1.77.3 (Nightly Build; 1784)

Thank you,

@simonai1254
Copy link
Contributor

Version 1.77.3-nb does not save settings as it's disabled due to development process in the settings saving section. If you want persistent settings, you currently have to use 1.77.2-nb.

@David-Houser
Copy link
Author

Understood, thank you.

@Kvarkas Kvarkas added In progress 1.77.3 Version 1.77.3 labels Feb 19, 2024
@cocoon
Copy link

cocoon commented Mar 28, 2024

If somebody wants to test the dev builds with cons param, I made an ugly hack for myself and modified the following line:

ConnectionsService.LoadConnections(Properties.OptionsDBsPage.Default.UseSQLServer, false, connectionFileName);

from:

 ConnectionsService.LoadConnections(Properties.OptionsDBsPage.Default.UseSQLServer, false, connectionFileName);

to:

 if (Properties.OptionsBackupPage.Default.LoadConsFromCustomLocation && File.Exists(Properties.OptionsBackupPage.Default.BackupLocation))
 {
     connectionFileName = Properties.OptionsBackupPage.Default.BackupLocation;
     ConnectionsService.LoadConnections(Properties.OptionsDBsPage.Default.UseSQLServer, false, connectionFileName);
 }
 else
 {
     ConnectionsService.LoadConnections(Properties.OptionsDBsPage.Default.UseSQLServer, false, connectionFileName);
 }

And now I can load my cons file from somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.77.3 Version 1.77.3 In progress
Projects
None yet
Development

No branches or pull requests

4 participants