[SOLVED] changing default file associations in gnome 3
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2010
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    changing default file associations in gnome 3

    How do I change the default file associations in F15/gnome 3? My system is currently set to open .tex files with emacs. But I prefer TeXworks, and while TeXworks shows up in the "Open With" menu, it would be convenient if double-clicking on a tex file opened it in TeXworks. In gnome2, the "Open with-->Other application" option let me select the default program associated with a particular type of file, but this functionality seems to be gone in Gnome 3. Do I have to edit some config file?

  2. #2
    Join Date
    Apr 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: changing default file associations in gnome 3

    I have the same question, I use Mathematica software but I can't asign *.nb files with the program, it even doesn't appear on the Applications part of the shell.

  3. #3
    Join Date
    Apr 2011
    Location
    Finland
    Posts
    291
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: changing default file associations in gnome 3

    Right-click->Properties->Open With->Set as default (lower right). I don't know how to do it if the application you want to use doesn't show up.

    I would attach a screenshot but it is 13px too tall

  4. #4
    Join Date
    Sep 2010
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: changing default file associations in gnome 3

    Thanks. I'm marking this as solved.

  5. #5
    Join Date
    May 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: changing default file associations in gnome 3

    Hello, I have a little bit bigger problem. I want to associate .mkv with xine. However xine-ui is not listed in applications list for associations (it's listed in menus etc.).
    Does anyone have an idea dow to do that?

  6. #6
    Join Date
    Mar 2010
    Location
    São José dos Campos (Brasil)
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: changing default file associations in gnome 3

    I also want to open a file with a program that is locally installed and I open it via command line. I don't have the option to put the path of the program to open the file like in gnome 2 ("use custom command"). Is there a workaround to this problem??

    Cheers,
    Germán.

  7. #7
    Join Date
    Nov 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking Re: changing default file associations in gnome 3

    - First look for the program (.desktop) in /usr/share/applications.
    - Edit the program file so that the Exec line looks like:
    Exec=yourprogram %U
    - Now the program should show up in application list

  8. #8
    Join Date
    Oct 2014
    Location
    New York
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Re: changing default file associations in gnome 3

    Quote Originally Posted by goyinux
    - First look for the program (.desktop) in /usr/share/applications.
    - Edit the program file so that the Exec line looks like:
    Exec=yourprogram %U
    - Now the program should show up in application list

    THIS. Worked on Fedora 20. Thanks.

    EDIT: ****, didn't mean to bump up such an old thread. Sorry.
    Last edited by Def885; 9th October 2014 at 06:50 AM. Reason: Dem old threads.

  9. #9
    dobbi Guest

    Re: changing default file associations in gnome 3

    Addendum if the program is not going to open URLs then %f and %F may be more appropriate.
    Code:
    Exec=Command Line
    The command line to start the application. If the application can open files the %f placeholder should be specified. When a file is dropped on the application launcher the %f is replaced with the file path of the dropped file. If multiple files can be specified on the command line the %F placeholder should be used instead of %f. If the application is able to open URLs in addition to local files then %u or %U can be used instead of %f or %F.
    source:
    man -Hgoogle-chrome xdg-desktop-menu

    More detailed explanation can be found in.Desktop Entry Specification from Freedesktop.org.
    http://standards.freedesktop.org/des...t/ar01s06.html

  10. #10
    Join Date
    May 2017
    Location
    Paramaribo
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: changing default file associations in gnome 3

    Hi All,

    Fedora 25 Spin: Cinnamon

    After some research I ended up here (this forum)

    https://unix.stackexchange.com/quest...ations-gnome-3 (last one)

    I removed Firefox completely and I'm using Iron Browser.
    After moving the iron-browser.desktop file (created with menu libre) to /usr/share/applications, it was
    not showing in Preferred Applications

    It seems that using DNF for installation,you will find the application in the application list of Preferred Applications.
    For Iron Browser, I had only a tar file for Fedora, After un-tar, I moved the directory to /opt.

    In the directory /usr/share/applications you have a file called "mimeapps.list". Using Nano I replaced firefox.desktop with iron-browser.desktop and restart my laptop

    And it is showing in the application list and selected for Web : Iron Browser
    Last edited by Thuurio; 29th May 2017 at 10:59 PM.

Similar Threads

  1. How-To: Mime Types and file associations with FC3 - Gnome 2.8
    By Pegasus in forum Guides & Solutions (Not For Questions)
    Replies: 7
    Last Post: 11th September 2010, 04:07 PM
  2. Problem changing file associations
    By Enzymaticracer in forum Using Fedora
    Replies: 6
    Last Post: 23rd December 2009, 04:44 AM
  3. FC3 Changing file-types associations
    By cscheng in forum Using Fedora
    Replies: 2
    Last Post: 14th November 2004, 02:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •