elementary / elementary/terminal

Inability to launch applications and bash scripts from the terminal via a .desktop file launcher

Open
#482 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
428
Forks
104
Avg merge
1d 54m
Merged PRs (30d)
2

Description

## Prerequisites
- [x] I have searched open and closed issues for duplicates.
It could be a problem similar to the one reported here:
https://github.com/elementary/terminal/issues/460
but I am not sure.
## Describe the bug
Inability to launch applications and scripts from the terminal via a .desktop file launcher.
Unlike Ubuntu 18.04 and Mint 19.3 the same application (e.g. GRASS GIS /usr/bin/ grass74) that should open a terminal window does not start from the slingshot applications menu and equally does not start by creating a bash script and inserting it in a .desktop file launcher with:
exec =/path/to/myscript.sh.
in both cases the application and the bash script only work by launching them directly from the terminal
I tried to edit the exec line in the .desktop file with:
exec=io.elementary.terminal -e "'cd /usr/bin' ; 'grass74'"
or
exec=io.elementary.terminal -e "'cd /path/to/myscript' ; 'myscript.sh'"
but doesn't works
### To Reproduce
Steps to reproduce the behavior:
install GRASS GIS on elementary OS 5.1 and start application from applications menu or create a bash script and insert it in a .desktop file launcher wit exec=/path/to/myscript.sh
## Platform Information
If you can't please share:
- OS: elementary OS
- OS Version: 5.1 Hera
- Hardware: Gigabyte Z390 Designare - intel i9-9900k

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.