Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gnome-terminal gnome-terminal
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 270
    • Issues 270
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gnome-terminalgnome-terminal
  • Issues
  • #346

Closed
Open
Created Apr 14, 2021 by Nom@turbine1991

Launch .sh in gnome-terminal

Simplify the process of launching .sh scripts in a terminal by providing an open-with entry.

Pros:

  • Allows you to set .sh files to launch by default in the terminal.
  • Avoids needing to create .desktop shortcuts to launching a program in the terminal.
  • Solves right clicking 'Run as a Program' not launching a visible terminal window.

How to implement

Paste the following into /usr/share/applications/gnome-terminal.desktop:

[Desktop Entry]
Type=Application
Name=Gnome Terminal
Exec=gnome-terminal -x sh %f
MimeType=application/x-shellscript;
Icon=gnome-terminal

Screenshot

Screenshot_from_2021-04-14_14-50-26

Edited Apr 14, 2021 by Nom
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking