{"id":13342533,"url":"https://github.com/taviso/minirun","last_synced_at":"2025-03-25T23:30:29.724Z","repository":{"id":148963325,"uuid":"332297388","full_name":"taviso/minirun","owner":"taviso","description":"Run commands with hidden console.","archived":false,"fork":false,"pushed_at":"2021-01-24T15:24:48.000Z","size":22,"stargazers_count":31,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-20T22:03:58.275Z","etag":null,"topics":["windows","wsl"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taviso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-01-23T20:03:01.000Z","updated_at":"2025-01-05T02:04:34.000Z","dependencies_parsed_at":"2023-05-02T23:31:16.115Z","dependency_job_id":null,"html_url":"https://github.com/taviso/minirun","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taviso%2Fminirun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taviso%2Fminirun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taviso%2Fminirun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taviso%2Fminirun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taviso","download_url":"https://codeload.github.com/taviso/minirun/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245560927,"owners_count":20635654,"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","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":["windows","wsl"],"created_at":"2024-07-29T19:29:30.535Z","updated_at":"2025-03-25T23:30:28.966Z","avatar_url":"https://github.com/taviso.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimal run\n\nThis is a tiny C program for running Windows commands with a hidden\nconsole. It's suitable for use in Windows shortcuts, i.e. lnk files.\n\nI use `run.exe wsl --exec xterm -display :0` to launch an XTerm on Windows.\n\nIf you don't want to compile it yourself, check the [Releases](https://github.com/taviso/minirun/releases) section.\n\n# Building\n\n```\n\u003e rc.exe /nologo resource.rc\n\u003e cl.exe /nologo  /Zi /O2 /guard:cf /GF /c /Fo:run.obj run.c\n\u003e cl.exe /nologo  /Zi /O2 /guard:cf /GF /MT /Fe:run.exe run.obj resource.res /link  user32.lib\n```\n\n\u003e Note: You need to build it as a 64bit application to access wsl.exe.\n\n# Screenshot\n\nYou can't see it running because it's designed to be invisible! Your\nshortcut should look something like this.\n\n![Screenshot](xterm-example.png)\n\n# Troubleshooting\n\nFirst try this to make sure run is working:\n\n```\nrun.exe calc\n```\n\nIf that does work, but starting a wsl application doesn't work, it may be a\nPATH issue.\n\nTry using the full path instead, like this:\n\n```\nrun.exe wsl --exec /usr/bin/program\n```\n\nIf you need to set `$DISPLAY` or some other variable, use `env`. For example,\nlike this:\n\n```\nrun.exe wsl --exec env DISPLAY=:0 /usr/bin/program\n```\n\nAre you trying to run a script? It might be a permissions issue, try this:\n\n```\nrun.exe wsl --exec /bin/sh /full/path/to/script.sh\n```\n\n\u003e If it's not a shell script, use the correct interpreter.. e.g. `/usr/bin/perl`.\n\nAre you trying to use `$DISPLAY` in wsl2? You might need a script to get the right address, save this as display.sh\n\n```sh\n#!/bin/sh\nDISPLAY=$(awk '/nameserver/ {print $2; exit}' /etc/resolv.conf):0 exec \"${@}\"\n```\n\nNow you can do `run.exe wsl --exec /bin/sh /path/to/display.sh /usr/bin/xterm`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaviso%2Fminirun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaviso%2Fminirun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaviso%2Fminirun/lists"}