LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2017, 01:34 PM   #1
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,143

Rep: Reputation: 43
Question 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... ):

Last edited by dedec0; 08-27-2017 at 01:41 PM.
 
Old 08-27-2017, 03:34 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,401
Blog Entries: 10

Rep: Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213
xdg-open ? it's not specific to mate, but should do what you want.
(what do you want to do?)
 
1 members found this post helpful.
Old 08-28-2017, 03:55 AM   #3
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,143

Original Poster
Rep: Reputation: 43
Question

Quote:
Originally Posted by ondoho View Post
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.
 
Old 08-28-2017, 04:11 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
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
 
Old 08-28-2017, 05:00 AM   #5
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,143

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by jsbjsb001 View Post
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.
 
Old 08-28-2017, 02:19 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Where on your hard drive is sublime_text?
 
Old 08-28-2017, 03:11 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,401
Blog Entries: 10

Rep: Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213
Quote:
Originally Posted by dedec0 View Post
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.
 
Old 08-29-2017, 08:00 AM   #8
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,143

Original Poster
Rep: Reputation: 43
Question

Quote:
Originally Posted by Habitual View Post
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?
 
Old 08-29-2017, 08:06 AM   #9
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,143

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by ondoho View Post
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.
 
Old 08-29-2017, 08:11 AM   #10
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,143

Original Poster
Rep: Reputation: 43
Question

Quote:
Originally Posted by ondoho View Post
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?
 
Old 08-29-2017, 01:37 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,401
Blog Entries: 10

Rep: Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213Reputation: 5213
Quote:
Originally Posted by dedec0 View Post
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).
 
Old 08-29-2017, 02:35 PM   #12
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,143

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by ondoho View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Review: Linux Mint 14.1 "Nadia" MATE + GNOME 3/Cinnamon LXer Syndicated Linux News 0 12-10-2012 05:30 PM
LXer: Review: Linux Mint 12 "Lisa" GNOME + MATE LXer Syndicated Linux News 0 12-02-2011 06:00 AM
Gnome-terminal equivalent to "konsole --noclose -e" 454redhawk Linux - General 5 03-24-2009 11:54 AM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration