Menu

#751 Can't open MMEX after switching user (Linux)

1.3.0
closed-fixed
Nikolay
None
5
2016-03-28
2015-09-20
Bob Z
No

When MMEX is opened, a temporary file is created in /tmp/mmex_rep. This file belongs to the user and is not removed when MMEX is closed. If the user logs out and another user logs in and tries to open MMEX, an error box pops up: "An assertion failed! ../src/common/file.cpp(344): assert "(pBuf != null) && IsOpened()" failed in Write().". Only way I found to open MMEX, either reboot or manually delete /tmp/mmex_rep (as root). Could it possible for MMEX to automatically remove that folder on exit?

Discussion

  • Nikolay

    Nikolay - 2015-10-02

    The code is:

    const wxString tempDir = mmex::getTempFolder();
        wxFileName::Mkdir(tempDir, wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL);
    

    where 'wxS_DIR_DEFAULT'
    Default mode for the new directories (see wxFileName::Mkdir): allow reading/writing/executing them to everybody, but just like wxS_DEFAULT the effective directory mode will be set after ANDing this value with umask.
    Seems OK.

     
  • Nikolay

    Nikolay - 2016-03-28
    • status: open --> closed-fixed
    • assigned_to: MMEX --> Nikolay
     

Log in to post a comment.