Bug in temporary file writing

Issue #47 resolved
Benoist LAURENT created an issue

Description

In some circumstances, user can get this error message using the VMD plugin.

#!

couldn't open "./config_temp.cfg": permission denied
couldn't open "./config_temp.cfg": permission denied
    while executing
"open "./config_temp.cfg" "w""
    invoked from within
".epock.nb.tab1.calculation invoke"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke]"
    (procedure "tk::ButtonUp" line 22)
    invoked from within
"tk::ButtonUp .epock.nb.tab1.calculation"
    (command bound to event)

Possible explanation.

Quite obviously, user does not have write permissions on the working directory. Notably, this would probably be the case any time VMD is launched from the OS graphical interface, especially on Linux systems.

Suggested solution.

Handle this problem by displaying a error window and telling the user to set VMD working directory to a directory with appropriate permissions.

Writing config_temp.cfg in /tmp would resolve the problem as the same error will occur while attempting to write Epock output files.

Comments (1)

  1. Log in to comment