Skip to content
Snippets Groups Projects
Commit f73a68c3 authored by Damian Minkov's avatar Damian Minkov
Browse files

Checks and fixes permissions of home folder and config file to be editable and...

Checks and fixes permissions of home folder and config file to be editable and writable only to the owner when using macosx or linux.
parent 1eab7f23
No related branches found
No related tags found
No related merge requests found
......@@ -779,6 +779,29 @@ private void storeConfiguration(File file)
}
}
/**
* Use with caution! Returns the name of the configuration file currently
* used. Placed in HomeDirLocation/HomeDirName
* {@link #getScHomeDirLocation()}
* {@link #getScHomeDirName()}
* @return the name of the configuration file currently used.
*/
public String getConfigurationFilename()
{
try
{
File file = getConfigurationFile();
if(file != null)
return file.getName();
}
catch(IOException ex)
{
logger.error("Error loading configuration file", ex);
}
return null;
}
/**
* Returns the configuration file currently used by the implementation.
* If there is no such file or this is the first time we reference it
......
......@@ -22,7 +22,7 @@ public interface ConfigurationService
{
/**
* The name of the property that indicates the name of the directory where
* SIP Communicator is to store user specific data such as configuration
* Jitsi is to store user specific data such as configuration
* files, message and call history as well as is bundle repository.
*/
public static final String PNAME_SC_HOME_DIR_NAME
......@@ -30,7 +30,7 @@ public interface ConfigurationService
/**
* The name of the property that indicates the location of the directory
* where SIP Communicator is to store user specific data such as
* where Jitsi is to store user specific data such as
* configuration files, message and call history as well as is bundle
* repository.
*/
......@@ -428,24 +428,34 @@ public void reloadConfiguration()
public void purgeStoredConfiguration();
/**
* Returns the name of the directory where SIP Communicator is to store user
* Returns the name of the directory where Jitsi is to store user
* specific data such as configuration files, message and call history
* as well as is bundle repository.
*
* @return the name of the directory where SIP Communicator is to store
* @return the name of the directory where Jitsi is to store
* user specific data such as configuration files, message and call history
* as well as is bundle repository.
*/
public String getScHomeDirName();
/**
* Returns the location of the directory where SIP Communicator is to store
* Returns the location of the directory where Jitsi is to store
* user specific data such as configuration files, message and call history
* as well as is bundle repository.
*
* @return the location of the directory where SIP Communicator is to store
* @return the location of the directory where Jitsi is to store
* user specific data such as configuration files, message and call history
* as well as is bundle repository.
*/
public String getScHomeDirLocation();
/**
* Use with caution!
* Returns the name of the configuration file currently
* used. Placed in HomeDirLocation/HomeDirName
* {@link #getScHomeDirLocation()}
* {@link #getScHomeDirName()}
* @return the name of the configuration file currently used.
*/
public String getConfigurationFilename();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment