ProposalL /usr/bin/open as an alternative for xdg-open and run-mailcap.

2014-04-29 Thread Charles Plessy
Hello kbd maintainers, xdg-utils maintainers and everybody,

The “kbd” package ships a symbolic link from /bin/open to /bin/openvt.

“openvt” is used to start a program on a new virtual terminal, and according to
its manual page, it has been renamed from “open” at the end of the XXth
century.  The changelog of the kbd package confirms the impression that it
has been phased out efficiently (thanks !).

I propose to harvest the fruit of this effort and introduce a /usr/bin/open
command to open files.

In Debian, there are multiple commands to causally open a file after guessing
its contents, in particular “see” from the “mime-support” package and
“xdg-open” from the “xdg-utils” package.  On Macintoshes, the command “open”
does something similar.

I propose that to use the alternatives system to provide /usr/bin/open by
xdg-utils and mime-support (at a lower priority), after kbd would drop the
symbolic link to openvt.  The common interface would be to run “open” on
filenames, with no URLs and no command-line options.

PS: I just see that it has been proposed already in the BTS (bug CCed) and
discused on a FreeDesktop mailing list.
http://lists.freedesktop.org/archives/xdg/2013-December/012969.html

I volunteer to contact them in case the idea takes momentum here.

Have a nice day,

-- 
Charles Plessy
Maintainer of the mime-support package
Tsurumi, Kanagawa, Japan


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140429080559.gf29...@falafel.plessy.net



Re: ProposalL /usr/bin/open as an alternative for xdg-open and run-mailcap.

2014-04-29 Thread Tollef Fog Heen
]] Charles Plessy 

 Hello kbd maintainers, xdg-utils maintainers and everybody,
 
 The “kbd” package ships a symbolic link from /bin/open to /bin/openvt.
 
 “openvt” is used to start a program on a new virtual terminal, and according 
 to
 its manual page, it has been renamed from “open” at the end of the XXth
 century.  The changelog of the kbd package confirms the impression that it
 has been phased out efficiently (thanks !).

It hasn't.  I for one regularly use it with the old name and I know I
have scripts lying about using it with that name.

 I propose to harvest the fruit of this effort and introduce a /usr/bin/open
 command to open files.

Please don't, or if you insist, get kbd to stop shipping it, wait for at
least two releases and then introduce it with a new name.

-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/87vbtspe90@xoog.err.no



Re: ProposalL /usr/bin/open as an alternative for xdg-open and run-mailcap.

2014-04-29 Thread Thorsten Glaser
Tollef Fog Heen tfheen at err.no writes:

  “openvt” is used to start a program on a new virtual terminal, and
according to
  its manual page, it has been renamed from “open” at the end of the XXth
  century.  The changelog of the kbd package confirms the impression that
it
  has been phased out efficiently (thanks !).
 
 It hasn't.  I for one regularly use it with the old name and I know I
 have scripts lying about using it with that name.

FWIW: “sudo mksh -lT8” opens a login shell on /dev/tty8 (-T also takes
a full /dev/ttySOMETHING argument), only hindered slightly by the Linux
kernel lacking the revoke(2) syscall.

(And mksh -T- -c 'something' dæmonises something, and if you præfix the
terminal with ‘!’ it doesn’t return immediately, thus eliminating fully
the need for cttyhack and setsid in Busybox, for people wanting to offer
usable interactive shells in /etc/rc or even /init or /linuxrc.)

bye,
//mirabilos (it also provides an amazing analog clock, ask XTaran…)


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/loom.20140429t173123-...@post.gmane.org