Comments (6)
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.
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.
Maybe flatpak-spawn needs some flags to run in terminal. I'm investigating
from workspaces.
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)
.
If you think this might be a different problem, I can open a different issue.
from workspaces.
@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.
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)
- Release 3.1.0
- When dragging and dropping items get multiplied or make them disappear HOT 1
- Searching icons and then deleting the text crashes the app HOT 1
- Some way to share definitions? HOT 10
- Cannot to delete Workspaces HOT 7
- Applications missing HOT 2
- Can't find commands when running custom command in Terminal HOT 2
- x-terminal-emulator does not exist in non-debian distros
- Apps open in duplicate HOT 9
- Pick icon automatically when creating application item HOT 1
- Add support for Dock mode HOT 3
- Feature Reqest: Add toggle option to command line arguments HOT 1
- Pass Environment Variables to "Custom Command" HOT 1
- Hotkey does not work in Mint XFCE
- When using Custom command w/ Terminal it gets called twice HOT 1
- Font in flatpack looks really bad HOT 2
- Feature Request: Backup and restore workspace config. HOT 6
- Add your stripe key to appdata
- Workspaces not in Elementary AppCenter by default HOT 3
- I can't launch apps on a particular desktop. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workspaces.