Linux on a daily basis-right-click the menu

Source: Internet
Author: User

In the development process, you often need to install the APKProgramTo the mobile phone, you need to open the command line and then tap the installation command, which is inconvenient.

Now there is a way to add a menu item in the context menu of the file browser, specifically used to install the APK program.

The method is as follows:

1. Create a new text file named "Install APK to mobile phone"

2. The content of this file is:

#! /Bin/Bash ## this scriptInstallThe selected APKFileOnto your phoneIfConnected. # distributed under the terms of gnu gpl version2Or later # InstallIn~ /. Gnome2/Nautilus-scripts or ~ /Nautilus/Scripts # You Need To Be Running Nautilus1.0.3+To use scripts. gnome-Terminal-e"ADB-D install $ nautilus_script_selected_file_paths"

3. copy the file to the directory ~ /. Under gnome2/Nautilus-Scripts

4. select any file and right-click the pop-up menu. A script menu item is added, which contains a sub menu item "Install APK to mobile phone; click it.

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.