Code Monkey home page Code Monkey logo

Comments (6)

matfantinel avatar matfantinel commented on July 28, 2024 1

So, after some evaluation and debugging with @DevAlien , we noticed that x-terminal-emulator -x my-alias and x-terminal-emulator -e "my-alias" weren't working with aliases, because non-interactive commands do not have access to aliases defined in .bashrc.

On my local tests, running x-terminal-emulator -e 'bash -i -c "my-alias"' worked. It basically the -i flag means the terminal will be interactive, which makes the aliases load. It fixed my use case, and didn't break anything apparently.

from workspaces.

matfantinel avatar matfantinel commented on July 28, 2024 1

That's fine. As soon as the change that changes -c to -e comes out, I can add bash -i -c "my-alias" part myself on the command.

from workspaces.

DevAlien avatar DevAlien commented on July 28, 2024

Maybe flatpak-spawn needs some flags to run in terminal. I'm investigating

from workspaces.

matfantinel avatar matfantinel commented on July 28, 2024

For the record, I'm having a similar issue with a non-Flatpak version (I installed from AppCenter).

But I can actually get some commands to work. For example, I run "mongod" to start the MongoDB service and it works. Same for "htop". However, I can't run some aliases (for example "graphics" in my screencast below), and more complex commands that start with "cd ~/Pictures" for example, that throw out Failed to execute child process “cd” (No such file or directory).

Screen record from 2020-09-09 16 04 10

If you think this might be a different problem, I can open a different issue.

from workspaces.

DevAlien avatar DevAlien commented on July 28, 2024

@matfantinel Sorry I missed this. We made a fix for this, would be great if you could give it a go. It is in the develop branch.

from workspaces.

DevAlien avatar DevAlien commented on July 28, 2024

If someone wants something special like that should do it on its own for the moment, not everybody uses bash etc. BUt commands should run better now. The issue with aliases stays there though. This is ready for 3.1 #32

from workspaces.

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.