{"id":14069303,"url":"https://github.com/sop/wslscript","last_synced_at":"2026-01-12T07:28:55.458Z","repository":{"id":146746530,"uuid":"197546077","full_name":"sop/wslscript","owner":"sop","description":"Associate .sh script files with WSL.","archived":false,"fork":false,"pushed_at":"2025-02-21T12:02:58.000Z","size":410,"stargazers_count":23,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-21T13:19:59.463Z","etag":null,"topics":["bash","drag-and-drop","scripting","shell-script","wsl"],"latest_commit_sha":null,"homepage":"https://sop.github.io/wslscript/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-18T08:31:31.000Z","updated_at":"2025-02-21T12:03:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"209ae9aa-9219-4784-b8c7-04b17918aa7f","html_url":"https://github.com/sop/wslscript","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/sop/wslscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sop%2Fwslscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sop%2Fwslscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sop%2Fwslscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sop%2Fwslscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sop","download_url":"https://codeload.github.com/sop/wslscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sop%2Fwslscript/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267815187,"owners_count":24148356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","drag-and-drop","scripting","shell-script","wsl"],"created_at":"2024-08-13T07:06:49.929Z","updated_at":"2026-01-12T07:28:55.452Z","avatar_url":"https://github.com/sop.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# [WSL Script](https://sop.github.io/wslscript/)\n\nShell script _(.sh)_ handler for\n[Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/about) _(WSL)_.\n\nAssociates .sh _(or any other)_ extension to be executed in WSL.\nAutomatically handles Windows → Unix path conversions.\nFiles can be dragged and dropped to registered file icon in explorer\nto pass paths as arguments.\n\n## Usage\n\nCopy `wslscript.exe` and `wslscript_handler.dll` to a location of your choice.\nThese files are used to invoke WSL, so don't move them afterwards.\n\nRun `wslscript.exe` to open a setup GUI.\nEnter the extension and click _Register_ button to add filetype association\ninto Windows registry.\n\nAfter registration, `.sh` files can be executed from explorer by double clicking.\nOther files can be passed as path arguments by dragging and dropping them into\n`.sh` file icon.\n\nScripts are executed in the same folder where the script file is located,\nie. `$PWD` is set to script's directory.\n\n## Tips\n\n### Change the Default User\n\nIf scripts run as root, you may wish to [change the default WSL user](https://learn.microsoft.com/en-us/windows/wsl/wsl-config#user-settings).\n\nAdd the following to `/etc/wsl.conf` file:\n\n```ini\n[user]\ndefault = username\n```\n\n## TODO\n\n-   [ ] Optionally register for all users\n\n## License\n\nThis project is licensed under the\n[MIT License](https://github.com/sop/wslscript/blob/master/LICENSE).\n\nIcon by [Tango Desktop Project](http://tango.freedesktop.org/Tango_Desktop_Project).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsop%2Fwslscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsop%2Fwslscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsop%2Fwslscript/lists"}