From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from phicode.de ([136.243.147.240]) by ewsd; Sun Dec 9 15:38:12 EST 2018 Comment: DomainKeys? See http://domainkeys.sourceforge.net/ DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=phicode.de; b=bwF4P/yVBhE4CUZkQYSqmX5WP8MjJTYvUtlDnDUY5RQ+iwLrBTkO3xmQSEHK7DI6jNDdn8/IUdQz/myqCqcHtDv18pYFB7Y3XsKpGZWER/ZaEEA2lT7CP2qN+qi3rcOqDFSetFf7nIZOsum8itLV8NjuxM7eUwc3ymjUpKBtgH4=; h=Received:Received:Date:From:To:Subject:In-Reply-To:Message-ID:References:User-Agent:MIME-Version:Content-Type; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=phicode.de; h=date:from:to :subject:in-reply-to:message-id:references:mime-version :content-type; s=default; bh=QrB/jtKCSg2FyiV1+DpkcuMg0pY=; b=V8J O+QsvHLAUtI14MEHTC7iRMQ20VATHx2KfnQE7bfKiuglzm4et08qAUP2OAFhWk/W djHOg5SxMiUJxBtnZpyCwGmgzROPK1q4ZNAPItM5RHI+y7CM/P3pxrj3ZEAyndZF fWTcQzb4Lmrp8uBeyd6blwsLauGmvcM+J/NMr3UM= Received: (qmail 27117 invoked from network); 9 Dec 2018 20:38:09 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 9 Dec 2018 20:38:09 -0000 Date: Sun, 9 Dec 2018 21:38:07 +0100 (CET) From: Julius Schmidt To: 9front@9front.org Subject: Re: [9front] rio exit menu In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: overflow-preventing plugin enhancement controller I'm opposed to this change. I would kill too many rios by accident :) On Sun, 9 Dec 2018, qwx wrote: > 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; >