Commit b424f9ec authored by Grumbel's avatar Grumbel

Removed config file directory creation (it's unused)

parent d8c0ad46
......@@ -134,13 +134,6 @@ Main::run(int argc, char** argv)
try
{
cfg_directory = Glib::build_filename(Glib::get_user_config_dir(), Glib::get_prgname());
if (access(cfg_directory.c_str(), R_OK | W_OK) != 0 &&
mkdir(cfg_directory.c_str(), 0770) != 0)
{
throw std::runtime_error(cfg_directory + ": " + strerror(errno));
}
if (device_files.empty())
{
JoystickListWidget list_dialog;
......
......@@ -39,8 +39,6 @@ private:
std::vector<Joystick*> joysticks;
std::vector<Gtk::Dialog*> dialogs;
std::string cfg_directory;
void on_dialog_hide(Gtk::Dialog* dialog);
public:
......@@ -55,7 +53,6 @@ public:
int run(int argc, char** argv) /* override only since gtkmm 3.4 ! */;
std::string get_cfg_directory() const { return cfg_directory; }
std::string get_data_directory() const { return datadir; }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment