TIPS: the solution "the shell script of the starter will call xterm to run"

Source: Internet
Author: User

TIPS: the solution "the shell script of the starter will call xterm to run"

This article also applies to CentOS 7.0 (x86_64) and ArchLinux 2014.10.01 (x86_64) in Mate 1.8.1 desktop environments.

(I only use these two Release versions)

Problem proposal

Add the initiator pointing to the. sh script in the panel according to the old idea. Take this as an example:

  1. /Home/myname/Scripts/pacman_Update.sh

However, xterm is called by default during running. The interface is neither beautiful nor used to it. What's more troublesome is that it does not support pasting.

Solution

You need to change the initiator:

  1. /Usr/bin/mate-terminal-x/bin/sh-c '/home/myname/Scripts/pacman_Update.sh'

The Startup type must be set to "application" instead of "program on the terminal ".

The execution result is as follows:

If this article is helpful to you, you are welcome to repost and share it. Thank you!

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.