question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passes C:\ based temp file location on a Ubuntu system

See original GitHub issue

When I launch my external editor (gvim), I get this error:

Selection_524

Which is a problem, since I’m on a Ubuntu 18.04 system. (Parallel was the subject of the email).

This seems to happen when I have a Thunderbird compose window without the main program running (ie. a /usr/lib/thunderbird/thunderbird -compose process).

Happy to help debug.

Thunderbird 68.8.0

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
reaglecommented, Jun 17, 2020

It’s been painful not being able to use my text editor for the past week. Any ideas of what to do?

0reactions
reaglecommented, Jun 29, 2020

I don’t know TB extensions or javascript, but since I’m on a Mac I did the following simple hack in exteditor.js, rezipped the files into an xpi file and it seems to work for me.

    function tmpDir() {
        // var tmpdir;
        // try {
        //     tmpdir = Components.classes["@mozilla.org/file/directory_service;1"].
        //         createInstance(Components.interfaces.nsIProperties).
        //         get("TmpD", Components.interfaces.nsIFile).target;
        // } catch (e) {
        //     tmpdir = (osType == 'unix') ? "/tmp" : "C:\\Temp";
        // }
        // return tmpdir;
        return "/tmp";
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cleaning Ubuntu temporary files if they exist
Linux distributions usually store their temporary files in /tmp . Ubuntu does so too, so the temporary files are in /tmp , but...
Read more >
Temporary Files (The GNU C Library)
The tempnam function is like tmpnam but lets you choose what directory temporary files will go in, and something about what their file...
Read more >
how to get system or user temp folder in unix and windows?
On Windows: Use GetTempPath() to retrieve the path of the directory designated for temporary files. wstring TempPath ...
Read more >
tmpfiles.d - Configuration for creation, deletion and cleaning of ...
It is mostly commonly used for volatile and temporary files and directories (such as those located under /run, /tmp, /var/tmp, the API file...
Read more >
Where is the temporary directory in Linux? - Super User
The /var/tmp directory is made available for programs that require temporary files or directories that are preserved between system reboots.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found