Page 1 of 1

Auto connection profile

Posted: Wed Dec 27, 2017 5:18 pm
by thesamu
Im working to create an automatic access through crontab and this is my string:

Code: Select all

01 10 * * * export DISPLAY=10 && /usr/games/mudlet
How can i launch from crontab a specific profile?
o.s. ubuntu (debian)

Re: Auto connection profile

Posted: Wed Dec 27, 2017 5:57 pm
by Vadi
We don't have any command-line arguments right now but you can enable 'autoconnect' on a profile to have it load automatically, would that work?

The setting is also stored as a file in the profile directory, I think it is called 'autoconnect'.

Re: Auto connection profile

Posted: Wed Dec 27, 2017 6:19 pm
by thesamu
Hi Vadi,
Thanks for the reply
currently I use "auto connect" but I have different server profiles that I would like to start from crontab.
auto-connect limits me to a single profile

Re: Auto connection profile

Posted: Thu Dec 28, 2017 5:07 am
by Vadi
You can tick multiple profiles to auto-load

Re: Auto connection profile

Posted: Wed Jan 10, 2018 12:21 am
by SlySven
The auto-connect file is (IIRC) just a very short file that contains a Qt variable value - if you grope (the manual user equivalent to the command line grep command 8-P ? ) around in the ~/.config/mudlet/profiles/<ProfileName> directory for a file with that name for a profile with the control enabled you can put together a shell script that puts a copy of the file with that value in it into any profiles you want to automatically load when you start Mudlet (and delete the file from any profiles that you do not want to start like this).

A command line option to load one or more defined profiles (and one to stop auto-loading of others) are an item on my ToDo list but they are not anywhere near the top at this time!