All Projects → repelliuss → WSL-Context-Menu-Manager

repelliuss / WSL-Context-Menu-Manager

Licence: MIT License
Manages the context menu for your Linux tools in WSL/WSL2 for Windows.

Programming Languages

C++
36643 projects - #6 most used programming language
Batchfile
5799 projects

Projects that are alternatives of or similar to WSL-Context-Menu-Manager

Terminal
The new Windows Terminal and the original Windows console host, all in the same place!
Stars: ✭ 79,371 (+317384%)
Mutual labels:  wsl, windows-terminal
webi-installers
Primary and community-submitted packages for webinstall.dev
Stars: ✭ 421 (+1584%)
Mutual labels:  wsl, wsl2
convey
Communication through a serial port or named pipe
Stars: ✭ 46 (+84%)
Mutual labels:  wsl, wsl2
runx
Provide X server on MS Windows with cookie authentication.
Stars: ✭ 67 (+168%)
Mutual labels:  wsl, wsl2
proton wsl2
Proton Kernel for the Windows Subsystem for Linux 2 (WSL 2). Highly experimental and always at the mercy of Windows Update.
Stars: ✭ 23 (-8%)
Mutual labels:  wsl, wsl2
Archwsl
ArchLinux based WSL Distribution. Supports multiple install.
Stars: ✭ 3,667 (+14568%)
Mutual labels:  wsl, windows-terminal
dotfiles
Dotbot managed dotfiles for a polyglot dev using WSL. Includes PowerShell stuff for Windows Installation
Stars: ✭ 14 (-44%)
Mutual labels:  wsl, wsl2
nvim-ghost.nvim
👻 GhostText plugin for Neovim with zero dependencies 🎉 Supports neovim running inside WSL too! 🥳 Windows/Linux/macOS supported out-of-the-box! 😄 (Other OSes need python3.6+ installed)
Stars: ✭ 32 (+28%)
Mutual labels:  wsl, wsl2
dotfiles
Cross platform home directory settings
Stars: ✭ 17 (-32%)
Mutual labels:  wsl, wsl2
usbipd-win
Windows software for sharing locally connected USB devices to other machines, including Hyper-V guests and WSL 2.
Stars: ✭ 1,321 (+5184%)
Mutual labels:  wsl, wsl2
wsl-distrod
Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
Stars: ✭ 1,637 (+6448%)
Mutual labels:  wsl, wsl2
Open in Windows Terminal
No description or website provided.
Stars: ✭ 24 (-4%)
Mutual labels:  context-menu, windows-terminal
subsystemctl
Utility to run systemd in WSL2 with a Linux namespace
Stars: ✭ 313 (+1152%)
Mutual labels:  wsl, wsl2
nix-config
NixOS configuration (also on WSL)
Stars: ✭ 51 (+104%)
Mutual labels:  wsl, wsl2
WSLackware
Slackware for WSL!
Stars: ✭ 38 (+52%)
Mutual labels:  wsl, wsl2
dotfiles
Bootstrap your Ubuntu in a single command!
Stars: ✭ 85 (+240%)
Mutual labels:  wsl
jumpfs
Jumpfs is a cross-shell bookmarking system for files. folders, urls and shell-comands. It works in PowerShell, Bash, and Cmd.
Stars: ✭ 30 (+20%)
Mutual labels:  wsl
Pie-Context-Menu
A Pie Context Menu for Web pages
Stars: ✭ 20 (-20%)
Mutual labels:  context-menu
RHWSL
Red hat UBI as a WSL Instance. Supports multiple install.
Stars: ✭ 91 (+264%)
Mutual labels:  wsl
windows-terminal-tweaker
Tweak your windows terminal to heart's content with this app using its beautiful interface to configure everything about the terminal.
Stars: ✭ 77 (+208%)
Mutual labels:  windows-terminal

Context Menu Manager for WSL

Bothered to open WSL everytime?

Table of Contents

Adding Vim to Context Menu

Deleting Vim from Context Menu

Adding Emacs to Context Menu

General Info

    WSL Context Menu Manager utilizes Windows' context menu for Linux tools with the ease of use. Although Windows specifies that file performance across the Windows and Linux operating systems is faster with WSL 1, some may still want to achieve that usability with WSL 2.

Features

  • Opening all files
  • Opening current directory
  • Custom icons in the context menu
  • GUI application support for WSL 2
  • Environment variables support
  • Custom launch arguments

How to Get

  1. You can clone repository to your local and begin to use. There you can compile .cpp files in bin folder yourself if you want.
  2. You can also get clean version by clicking here!

How to Use

     Before adding any tool to your context menu, decide where to put WSL Context Menu Manager. Don't change the directory name or location without deleting all the tools. You can always manually delete though.

To add to context menu

  1. Run add_to_context_menu.bat.
  2. It will ask for admin privileges to manage registries in the system from Command Prompt. You'll be able to view context of last added registry. You can check the general content of constructed register in the screenshot down below.
  3. Answer the questions appropriately.

First Question: What is the launch command in WSL?

    The idea behind this, take the launch command user gave and append launch path with a blank space at the end. Creating a generic script for all the tools is hard. My assumption is, tools are capable of undestanding the string all alone at the end of launch command.

    If your tool doesn't understand the path at the end, you may need to use a specific command line option. Use that option at the end of your launch command. Leave its value empty because launch path will be appended to end of your launch command.

    You can always go to the scripts folder and edit the script of your tool manually to meet your needs.

Second Question: Is this a GUI app?

     If you use a X Server for your app, you need to answer with y. Otherwise it shouldn't matter.

Possible Adding Scenario

General Content of Constructed Register

To delete from context menu

  1. Run delete_from_context_menu.bat.
  2. It will ask for admin privileges to manage registries in the system from Command Prompt.
  3. Answer the questions appropriately.

Answer to the first question What is the app name you want to delete?: should be identical to the first word of launch command you wrote while adding to context menu.

Possible Deleting Scenario

Using custom icon

  • Put your .ico file to icons folder in this way: XXX.ico. XXX is the name of the app you are going to give while adding that app to context menu. XXX must be identical with your answer.
  • You must do this before adding to context menu.
  • Sometimes if you replace your new .ico file with the existed name, Windows shows the old icon. You need to run this code ie4uinit.exe -show or you can restart your computer.

About Environment Variables

    WSL doesn't see your exported variables within the outer terminal. Which means you can't launch your app in Linux with the command line arguments, as you normally do in Linux if you exported some variable for it, while starting WSL.

    If you export something to launch, then follow these instructions.

  1. Open Edit environment variables for your account in Windows.
  • If you're exporting your variable to your PATH variable,
    1. Add an environment variable named WSLPATH to Windows.
    2. Set its value to what you want to export in Linux.
    3. If you want to export multiple values to your PATH, seperate them with :.
  • If you're exporting a variable,
    1. Add an environment variable named WSLEXPORT.
    2. Set its value to what you want to export in Linux.
    3. If you want to export multiple values to your PATH, seperate them with , blank space.

Environment Variables

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].