[SOLVED] Sudo Ranger does not open files with VIM

I am using ranger as my file manager. And sometimes I run it with sudo. But then it want's to open all with nano. Even tough the environment variables (EDITOR & VISUAL) are set to vim.
Maybe it hast something to do with /bin/sh - but when that is the case, how do I change the default behaviour of /bin/sh?
Last edited by natepad (2015-04-02 16:07:36)

Sure you can. As the sudoers man page describes, the env_reset option is on by default. You could use the env_keep options. Or use the -E flag for sudo. Or....
http://www.sudo.ws/sudo/man/1.8.13/sudo.man.html
http://www.sudo.ws/sudo/man/1.8.13/sudoers.man.html

Similar Messages

  • Adobe Reader XI does not open files with a command line "path" argument.

    Adobe Reader XI does not open files with a command line "path" argument. Version X and lower all worked fine. I have deleted and reinstalled the program with no success. Is this a bug?

    Hi Daniel,
    What is the make of the printer and is it using PCL or PS driver.?
    Do you have Acrobat installed on this machine as well?
    Please check if 'Print Spooler' service is running on the machine.
    Regards,
    Rave

  • Bridge does not open files. dialog: libmmd.dll missing

    bridge does not open files. dialog: "libmmd.dll missing, reinstall bridge."
    Yet I cannot redownload bridge because when I open creative cloud I see bridge as up to date. How can I redownload installed programs?

    How can I redownload installed programs?
    https://creative.adobe.com/products

  • Photoshop does not open files sent from LR

    Photoshop CS6 Extended does not open files sent from Lightroom. 4.4 on Win 7. What is wrong? PS starts but instead in LR the error "Could not open Photoshop appears.

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Photoshop does not open file sent from LR

    Photoshop CS6 Extended does not open files sent from Lightroom. 4.4 on Win 7. What is wrong? PS starts but instead in LR the error "Could not open Photoshop' appears.

    BTW, I tried moving the Editor app from the support file into the app folder per fixes on this issue in the past.

  • Process.start("winword", filename) can not open file with space in the path and name

    Hi,
    I am trying to write a class which can open file with selected application. for simplicity, now I just hard code the varaibles.
    the problem: if the path or file name has space in it, even it exist, winword still can not open it.
    could someone kindly show me what I did wrong and how to do it properly.
    Thanks in advance.
    Belinda
    public static class FileOpen
    public static void info()
    string path = @"c:\a temp folder\aaa 1.txt";
    if (File.Exists(path))
        // the file I am using in the sample does exist
         MsgBox.info("yes");
    else
         MsgBox.info("no");
    // working
    //Process.Start("winword", "c:\\aaa.txt");
    // not working
    //Process.Start("winword", "c:\aaa.txt");
    // not working
    Process.Start("winword", "c:\\a temp folder\\aaa 1.txt");
    // not working
    Process.Start("winword", path);

    string AppPath;
    AppPath = ReadRegistry(Registry.CurrentUser, "Software\\FabricStudio", "TARGETDIR", value).ToString() + @"help";
    string FileName = "'"+ AppPath + "\\ImageSamples.doc" + "'";
    try
    System.Diagnostics.Process.Start("Winword.exe", FileName);
    can any body please help for this.
    where i am making mistake?

  • Preview does not open files anylonger

    Preview on my MB is not longer working!
    It is unable to view pdf. files.
    Any suggestions?
    Bernhard

    If another application tries to open when you double click a pdf file. click once on that file to select it, then press command + I.
    in the info window that appears expand the section 'open with' then choose from the drop down 'preview' then click the change all button.
    If preview opens but does not open the pdf you may have a bad preference file so trash the following file
    /Users/yourname/Library/com.apple.Preview.plist
    then reopen preview.

  • Excel 2013 does not open files

    Whenever I click on an Excel spreadsheet, Microsoft Office does not open the file, instead it opens Excel but without any content. 
    Only thing on the screen is at the bottom left corner and it states "ready" 

    Hi Christiaan Olivier,
    Please refer to following KB and check if help you to solve this issue.
    Excel: How to Troubleshoot Excel opening blank when you double-click a file icon or file name
    In addition, this issue is more related to Excel. I suggest that you should post the problem in
    Excel Forum. I believe we will get a better assistance there.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Does not open file online

    I go to official web sites, as canada CIC.gc.org and when I am trying to see a pdf file that I need, It does not show me the file and asks me to update my adobe reader but I have the very latest version and when I update it again it says me that and still file does not open and again it asks me for update
    What can I do with that ? Tried other browsers, but IE does not work on my MAC

    So what browser do you use?

  • [SOLVED]Pacman error: could not open file /var/.../portaudio

    Anyone got any insight?
    Any pacman or AUR-helper operation I try to do results in many repititions of this error.
    [marcus@ARCH ~]$ packer -Syu
    Password:
    :: Synchronizing package databases...
    core is up to date
    extra 450.4K 401.0K/s 00:00:01 [##########################################] 100%
    error: failed retrieving file 'community.db.tar.gz' from mirrors.easynews.com#####-------------] 68%
    community 372.7K 997.9K/s 00:00:00 [##########################################] 100%
    :: Starting full system upgrade...
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    [snip many repeats of same error]
    [marcus@ARCH ~]$ packer portaudio
    0 error: could not open file /desc: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    1 community/desc: 19_20071207-2error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    2 aur/haskell-portaudio 0.0.1-2
    Haskell bindings for the PortAudio library.
    3 aur/mingw32-portaudio 19_20071207-1
    A free, cross-platform, open source, audio I/O library (mingw32)
    4 aur/portaudio-svn 1384-3
    PortAudio is a free, cross platform, open-source, audio I/O library.
    5 aur/pyaudio 0.2.3-3
    Python bindings for PortAudio, the cross-platform audio I/O library
    6 aur/portaudio_v18 pa_snapshot_v18-3
    A free, cross-platform, open source, audio I/O library
    Type numbers to install. Separate each number with a space.
    Numbers: 1
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/depends: No such file or directory
    desc: package not found, searching for group...
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: 'desc:': not found in sync db
    Last edited by Skripka (2010-05-11 18:21:11)

    hokasch wrote:looks like that mirror has some problem, switch to another one for the time being
    That mirror does have a problem...but switching to a different mirror returns the same mystery local error.  PS-I haven't had portaudio installed on my system in at least 6 months, and pacman has started returning errors about it this morning
    Last edited by Skripka (2010-05-11 18:15:33)

  • Why AAReader  does not open PDF with bitmap img

    good evening
    Do you know why Adobe Acrobat Reader (Android2.3.4 Nexus S)
    does not open  PDF containing bitmap image ?
    For example, I cannot read this file http://driveinx.free.fr/image.pdf
    thank you in advance for your help
    Best regards
    Benoit

    Hello,
    thanks
    I am available if needed,
    I only have this type of PDF and I wish you to do
    Br

  • Firefox does not open links with a new window or tab for certain web sites, e.g. Santander On line banking, help links.

    When accessing some sites where they have links for additional information that would normally open a new window or tab, Firefox does not open either. This happens on a variety of sites, most recently the Santander on-line banking site.
    == URL of affected sites ==
    http://

    Such JavaScript links should show the image in the same tab, so make sure that you left click such links.
    * http://kb.mozillazine.org/JavaScript
    Try to reload the web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • [SOLVED] pacman error: could not open file /var/lib ...

    the actual error is
    error: could not open file /var/lib/pacman/sync/community/fonteditfs-1.2-2/desc: No such file or directory
    removing that folder fixed it. i dont know if it was a coding mistake or just my box did something stupid today :S
    any thoughts?
    Last edited by eldragon (2010-04-20 17:25:18)

    geniuz wrote:
    I don't know if this error occured during an update of right after you've invoked pacman, but in any way synchronizing pacman I think should fix the issue. This is something you might have tried before deleting the file, but then again I don't know when the error occured. If it occured immediately deleting the file would probably be the easiest solution. I would've done the same.
    If you've synchronized pacman after you've removed the file all should be well now, maybe something indeed went wrong during an update (maybe your mirror went down or something, you never know).
    yes, the error apperared right after syncing the databases. the update went as expected...

  • Photoshop CS3 lauches but does not open files from Lightroom 2.7

    These programs have been on my computer since the dawn of time and have always worked. Now all of a sudden I can't open files from LR into PS. PS launches, but the files don't open. I get that message Photoshop could not be lauched, which is ironic since the program is now open.
    I haven't done anything to the programs so it makes no sense. IN the past I have had issues with PS and the tech had me create a new login on my computer and it fixed things. Tried that. No help.
    Does anyone ahve any suggestions. I have repaired both programs to no avail.
    Thanks for you help.

    Something has gone wrong with how Lightroom finds and communicates with Photoshop.
    That could be a registry string, or some preference within Lightroom.
    The Lightroom forum is more likely to be able to help you solve this.

  • Double clicking does not open files.

    The regular double clicking to open files on desktop, or in e-mail or to play a song in iTunes, does not work. I can get around the problem by going to a scroll down menu and click open or play (a song) but is one more step to get where i need to go. The only thing I used lately that is different is that I used the mouse instead of the trackpad for a day because a small injury in my hands.
    I have an iBook G4, 10.5.8
    Thank you in advance for your time and attention,
    John
    PD: The mouse I was trying to use did not work, model M5769. I found the one that came with this computer later that week and worked instantly.

    Are we to understand, then, you resolved this issue
    by using a different model mouse at the time?
    Since I was reading back through older posts to see
    if some were left without a reply, I saw this & wonder.
    Hopefully you were able to solve this issue and it
    would seem as though a different product worked.
    I often use a wired USB mouse with my portables.
    Almost any brand of mouse including two-button
    will work. Fancier ones may require extra software.
    Good luck & happy computing!

Maybe you are looking for

  • Error while booting the application server

    CMDTUX_CAT:1685: ERROR: Application initialization failure CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error ha

  • Qosmio X770-107 - 3D emitter needs to be installed to get 3D

    I have a Toshiba x770-107 and 3D nvidia Vision 2 glasses. I had this laptop before and all I had to do was to turn on the glasses and they worked. Now with this new laptop I had to install and plug in this emitter via usb port to get the 3d to work.

  • Query's in sap MM point of view.

    Hai sap guru's, Let me know 1."How  can you segregate master data  for project implementation? 2. How the account modifier triggers in account determination? 3. How the price taken into Purchase Order from Purchase Info Record" 4.what accounts are ge

  • XFA form from API java

    Hi, I'm developing a small project in java, it's a desktop project. This application has to populate a PDF document. The PDF document has been developed using LiveCycle with a dynamic XFA form. 1. Could I use the LiveCycle API from my application wit

  • Any way to open a .opd document?

    I had to go to kinkos today and had a terrible time. I spent like $35 scanning 27 pages and all I got was a .opd document. How the heck can I open in? I saw some people use graphic converter to do so, but that didn't work for me. I want to convert it