Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


Diff of /Netdisco/lib/App/Netdisco/ [13c7ee] .. [edfb0f] Maximize Restore

  Switch to side-by-side view

--- a/Netdisco/lib/App/Netdisco/
+++ b/Netdisco/lib/App/Netdisco/
@@ -14,6 +14,11 @@
 use App::Netdisco::Web::Device;
 use App::Netdisco::Web::TypeAhead;
 use App::Netdisco::Web::PortControl;
+# need to set at runtime the sessions dir in user home
+# because YAML config (session_dir) cannot interpolate $ENV{HOME}
+use Path::Class 'dir';
+set('session_dir', dir($ENV{HOME}, 'netdisco-web-sessions'));
 sub _load_web_plugins {
   my $plugin_list = shift;