LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What is the Mate equivalent of Gnome command "gnome-open"? (https://www.linuxquestions.org/questions/linux-software-2/what-is-the-mate-equivalent-of-gnome-command-gnome-open-4175612725/)

dedec0 08-27-2017 01:34 PM

What is the Mate equivalent of Gnome command "gnome-open"?
 
What is the Mate Desktop equivalent of Gnome command "gnome-open", for which I used a much shorter equivalent alias of "go"?

No, it is *not* "mate-open". :b

For example, the file manager command is "nautilus" in Gnome and "caja" in Mate.

I wished to find a page with the full list, but could not... ):

ondoho 08-27-2017 03:34 PM

xdg-open ? it's not specific to mate, but should do what you want.
(what do you want to do?)

dedec0 08-28-2017 03:55 AM

Quote:

Originally Posted by ondoho (Post 5752589)
xdg-open ? it's not specific to mate, but should do what you want.
(what do you want to do?)

I never heard of xdg-open! The man page title is "opens a file or URL in the user's preferred application". Great, this is what I wanted (or so I think). The full man page is:

Code:

NAME
      xdg-open - opens a file or URL in the user's preferred application
SYNOPSIS
      xdg-open {file URL}
      xdg-open {--help --manual --version}
DESCRIPTION
      xdg-open opens a file or URL in the user's preferred application. If a
      URL is provided the URL will be opened in the user's preferred web
      browser. If a file is provided the file will be opened in the preferred
      application for files of that type. xdg-open supports file, ftp, http
      and https URLs.

      xdg-open is for use inside a desktop session only. It is not
      recommended to use xdg-open as root.
OPTIONS
      --help Show command synopsis.
      --manual
              Show this manualpage.
      --version
              Show the xdg-utils version information.
EXIT CODES
      An exit code of 0 indicates success while a non-zero exit code
      indicates failure. The following failure codes can be returned:

      1      Error in command line syntax.
      2      One of the files passed on the command line did not exist.
      3      A required tool could not be found.
      4      The action failed.
EXAMPLES
      xdg-open 'http://www.freedesktop.org/'
      Opens the Freedesktop.org website in the user's default browser
      xdg-open /tmp/foobar.png
      Opens the PNG image file /tmp/foobar.png in the user's default image
      viewing application.

But the manual page does not explain how it works, where the preferred application is defined. Is this setting the same among several window managers?

It should have not changed in Gnome 3, but Gnome 2 (Ubuntu 10 and 11 default window manager) has "gnome-open", which man page is a bit different, with more options:

Code:

NAME
      gnome-open - Open files and URLs using the GNOME file handlers
SYNOPSIS
      gnome-open [OPTION]... [URL]...
DESCRIPTION
      This program opens files using file handlers configured in GNOME.
OPTIONS
      Usage: gnome-open [OPTION...]
      Dynamic Modules
      --load-modules=MODULE1,MODULE2,...
              Dynamic modules to load
      Help Options
      -?, --help
              Show a brief help message
      --usage
              Display a brief usage message
      Bonobo activation Support
      --oaf-ior-fd=FD
              File descriptor to print IOR on
      --oaf-activate-iid=IID
              IID to activate
      --oaf-private
              Prevent registering of server with OAF
      GNOME Library
      --disable-sound
              Disable sound server usage
      --enable-sound
              Enable sound server usage
      --espeaker=HOSTNAME:PORT
              Host:port on which the sound server to use is running
      --version
              Prints the version number
EXAMPLES
      Open a web page
              gnome-open www.gnome.org
      Open an OpenOffice.org document
              gnome-open Spinach.odf
      Open a directory in Nautilus
              gnome-open ~
      Send an e-mail
              gnome-open mailto:gnome-list@mail.gnome.org
      Possible useless use of gnome-open
              gnome-open /usr/share/applications/gedit.desktop

Gnome contains several programs, the ones which come with it, I mean. gnome-* are several of them, of which gnome-open is a basic one. There are Gnome and Mate programs that do not start with "gnome-" or "mate-". Mate renamed all (or most) of these programs when it forked Gnome 2.

I want to know what is the new name (Mate's name) of gnome-open. And I tried to find a full page with all of these pairs listed - and could not. As example of such a pair, I gave their file manager: Nautilus in Gnome, Caja in Mate.

jsbjsb001 08-28-2017 04:11 AM

Not sure if this is what your after but, you may want to have a look at this: https://unix.stackexchange.com/quest...ced-by-sublime

dedec0 08-28-2017 05:00 AM

Quote:

Originally Posted by jsbjsb001 (Post 5752751)
Not sure if this is what your after but, you may want to have a look at this: https://unix.stackexchange.com/quest...ced-by-sublime

That thread is not really useful, but thank you. It did not appear in my search results (for the queries I tried). A command called sublime does not exist in Mate (at least in Mate .16, which is new, the next to the last version. That thread is from 2012.

Further, in that thread the "mate-open" exists... that is very weird! Why it does not exist in a Debian 9 with its Mate? /-:

The "preferred applications" are configured in the menu "System > Preferences > Personal > Preferred apps" in Mate. The same is found in Gnome 2 in "System > Preferences > Preferred apps".

"gnome-open" is a command name, I call it from a terminal. "go" is my alias for it, to type quicker. See?

It seems I am not being as clear as I wanted. If any of you note things I should tell to make it better, please tell me! Questions to tailor a more useful and clear post are also welcome.

Habitual 08-28-2017 02:19 PM

Where on your hard drive is sublime_text?

ondoho 08-28-2017 03:11 PM

Quote:

Originally Posted by dedec0 (Post 5752748)
But the manual page does not explain how it works, where the preferred application is defined.

took me about 1 minute to find this:
https://wiki.archlinux.org/index.php...s#XDG_standard
you're welcome.

dedec0 08-29-2017 08:00 AM

Quote:

Originally Posted by Habitual (Post 5752976)
Where on your hard drive is sublime_text?

There is no sublime_text file in my computer. I only read about it in that other site thread pointed here. Should it exist? See these lines copied from my terminal:

Code:

09:37:41 me@there: /var/tmp
$ ssh me@192.168.RRR.RRR
Debian GNU/Linux 9
me@192.168.RRR.RRR's password:
Linux debian 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Sat Aug 26 16:40:45 2017 from 192.168.RRR.RRR
05:38:39 [  0] me@deb: ~
$ sudo -s
[sudo] password for me:
root@deb:/home/me# cd /
root@deb:/# find . -name '*sublime_text*'
root@deb:/#

Two almost related questions, I do *not* want to change this thread's subject with them. Just quick and single answers, I imagine:

1. What commands or managers would I first use to read that new mail? My account in that system has just a few days, I barely configured any program for me in it.

2. Can I set the times read in the future welcome messages above within my locale? In ssh without -X? How?

dedec0 08-29-2017 08:06 AM

Quote:

Originally Posted by ondoho (Post 5753005)
took me about 1 minute to find this:
https://wiki.archlinux.org/index.php...s#XDG_standard
you're welcome.

I am sorry. The information that "you found this" is not useful for me. What did you search for?

What did you already know to start this search? That XDG is a standard? What else?

That page is not even related to the queries I tried before, or probably any other I could try. Further, I would expect to find pages in Debian related distros, imagining they are more appliable to the computers I use.

dedec0 08-29-2017 08:11 AM

Quote:

Originally Posted by ondoho (Post 5753005)
took me about 1 minute to find this:
https://wiki.archlinux.org/index.php...s#XDG_standard
you're welcome.


Further, if XDG is a standard, would it be best to mention it in the xdg-open manpage?

ondoho 08-29-2017 01:37 PM

Quote:

Originally Posted by dedec0 (Post 5753295)
I am sorry. The information that "you found this" is not useful for me. What did you search for?

it tells you "where the preferred application is defined" (your words).

dedec0 08-29-2017 02:35 PM

Quote:

Originally Posted by ondoho (Post 5753397)
it tells you "where the preferred application is defined" (your words).

Yes, the standard seems to be about that in linuxes.

And I did not mean to be rude or unpolite with my words, pretty much the opposite. I tried to be constructive.


All times are GMT -5. The time now is 07:40 AM.