Git Product home page Git Product logo

Comments (3)

realh avatar realh commented on July 28, 2024

I don't think I can do anything about that. It gets the cwd by reading it from /proc//cwd which points to the resolved location if you got there via a link. But you have made me realise that there are problems in the code for doing this so I should fix it.

Original comment by: realh

from roxterm.

realh avatar realh commented on July 28, 2024

It's interesting that xterm appears to have the correct behaviour when a new window is opened. Maybe you could implement it into ROXTerm however xterm does it?

Original comment by: jonorthwash

from roxterm.

realh avatar realh commented on July 28, 2024

The main difference is that xterm uses a separate instance for each window so each one inherits the cwd from its parent without having to do anything. All ROXTerm windows share a single instance even if you run each one from the command line, unless you use the --separate flag. This means they have to have their working directory set explicitly, otherwise they'd all be stuck with whatever was the cwd when the original instance was run.

When a second instance is run from a command it reads the cwd and sends a dbus request to the original instance to open a new window with that directory and all the other options. It seems that getcwd() and g_get_current_dir() both follow symlinks, but I stumbled across GNU's get_current_dir_name() which appears not to, so I've changed roxterm to use that when it's available.

In short, opening a new window by running a roxterm command should now set the cwd the way you want, but I can't change what happens to it when using the New Window/Tab menu items. Please checkout the latest svn.

Original comment by: realh

from roxterm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.