From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wopr.sciops.net ([216.126.196.60]) by ewsd; Sun Dec 9 15:26:52 EST 2018 Received: (qmail 66503 invoked from network); 9 Dec 2018 12:26:44 -0800 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on wopr.sciops.net X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,NO_FM_NAME_IP_HOSTN, RDNS_DYNAMIC,TVD_RCVD_IP autolearn=no autolearn_force=no version=3.4.2 Received: from 243.216.7.109.rev.sfr.net (HELO u27.nope) (qwx@109.7.216.243) by wopr.sciops.net with ESMTPS (ECDHE-RSA-AES128-GCM-SHA256 encrypted); 9 Dec 2018 12:26:44 -0800 Message-ID: From: qwx Date: Sun, 9 Dec 2018 21:26:45 +0100 To: 9front@9front.org Subject: rio exit menu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: stable descriptor blockchain service Hello, Currently, rio hides an 'Exit' entry in mouse menu 3 unless argv[0] contains the string ".out". The inlined patch below removes the check and exposes the entry. While potentially dangerous, it is more convenient than manually killing a given rio, and several people including me have been using this or similar patches for a while. What do you think? Would anyone else like to see this merged? Thanks, qwx diff -r 49bd5e4c9bde sys/src/cmd/rio/rio.c --- a/sys/src/cmd/rio/rio.c Wed Feb 07 18:53:08 2018 +0000 +++ b/sys/src/cmd/rio/rio.c Thu Feb 15 23:00:00 2018 +0100 @@ -125,10 +125,6 @@ Image *i; Rectangle r; - if(strstr(argv[0], ".out") == nil){ - menu3str[Exit] = nil; - Hidden--; - } initstr = nil; kbdin = nil; maxtab = 0;