Importing freedesktop file associations into various file managers

I love light FMs that don't rely on HAL (or rather, don't rely on it AND don't make me mess around with XML files to get them working). But file associations in most of them are a pain.
- ROX makes you set up associations one by one
- So does tuxcmd, as far as I can tell
- Emelfm2 comes with assocations, but doesn't pay attention to what you have installed
- XFE is probably the best, it lets you associate various broad types of files (audio, video, etc.) with an application... But unusual filetypes still need to be associated manually.
My thought is: the .desktop files are already there, in /usr/share/applications. Can I import associations from those?
ROX I already know can do that, albeit in a kind of crippled fashion, with perl-mime-info. That doesn't seem to work for the other three though.
If I had to guess, I'd say XFE didn't support importing associations, since it makes things the least painful. Tuxcmd I'm not sure about, I'd think it would given that it starts out with all of two associations, generic file and generic directory...
Emelfm2 on the other hand appears to have some way of importing .desktop file info. However, the website is down and Google's cached version won't load, so that's all I know.
Does anyone know more about dealing with .desktop files in the above FMs?

You could take a look at mimeo (for opening files) and mimeman (for managing associations).
Mimeman lets you set associations (including defaults) using globbing and regexes so you can avoid most manual work. Mimeo respects associations set by mimeman as well as those in .desktop files. If you can get your file manager to use mimeo for everything then you should be able to get consistent behavior.
Mimeo also supports an arbitrary association list that is based on argument strings rather than mimetypes, which allows it to open e.g. URLs.

Similar Messages

  • How do I reset the default file association for .bat files on Windows 8.1?

    Windows 8.1 allows the user to change the file association for .bat files. I made the mistake of using this facility to change the default file association for .bat files to Notepad++. Now when I attempt to run a .bat file, the script for the .bat
    comes up in Notepad++, instead of its being run as an executable file!  All my .bat files are now useless. I tried finding a way to change this back to the original executable setting, including deleting Notepad++ from my system, but nothing
    has worked. 
    There are discussions that I found on the Internet about this problem, and the solutions to which I was led have not worked either. Most of the solutions apply to Windows 7 or Vista, but not to Windows 8. There are a few solutions that purport to apply to Windows
    8 and 8.1, but they do not work for me.  
    (Disconcertingly, some of the solutions presented for the problem that apply to Vista or Windows 7 and are dated as early as 2009, so this problem has apparently been around for some time, but Microsoft still keeps .bat files on the Control Panel facility that
    enables the change to be made. I cannot see why, but there it remains.)
    Can someone please help me change this file association back to the original setting for Windows 8.1? Remember, most if now all the links that address this issue are focused on Windows 7. I need an answer that has been tried and proven to apply to Windows 8.1.
    Nothing I have tried works.

    Hi,
    For the issue, we can restore Default File Extension Type Associations through adding the registry entries.
    1. Download the .reg file from the following link.
    http://www.eightforums.com/attachments/tutorials/8025d1345781188-default-file-associations-restore-windows-8-bat.reg
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    2. Save the .reg file to your desktop.
    3. Double click on the downloaded .reg file to Merge it.
    4. If prompted, click on Run, Yes (UAC), Yes, and OK to approve the merge.
    5. Sign out and in, or restart the computer to apply.
    6. If you are logged in as a standard user and this still does not help, then have the administrator also merge the needed .reg file for the listed file extension or protocol below while logged into their administrator account.
    Hope this helps.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • What is the best way to merge a file content into log file

    What is the best way to merge a file content into log file.
    In worst case, I will read the file line by line as string, then use
    logger.info(lineString)to output to log file.
    However, is there better way to do this?
    The eventual log file will be something like:
    log message 1
    log message 2
    content from file line 1
    content from file line 2
    content from file line 3
    log message 3
    log message 4Thanks

    John618 wrote:
    Thank you and let me explain:
    1. What do you mean by better?
    I would like to see better performance. read line by line and log each line as string can be slow. Did you measure this and determine that it is actually a problem for your application? Or are you guessing?
    Regardless of what you do you are still going to need to read the file.
    >
    2.The only better way I can think of is not having to do it, but I assume you have a very good reason to want to do this.
    Yes, I have to do it beacuse the requirement is to have that file content be part of logging.
    Any idea?How is it supposed to be part of it? For example which of the following is better?
            File AAA - contents
                       First Line
                       Second Line XXX
            Log 1
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: First Line
                    2009-03-27 DEBUG: Second Line XXX
                    2009-03-27 DEBUG: Random following line
            Log 2
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: ----- File: AAA -------------
                    First Line
                    Second Line XXX
                    2009-03-27 DEBUG: Random following lineBoth of the above have some advantages and disadvantages.
    The first in a mult-threaded app can end up with intermittent log entries in between lines, so having log lines with thread ids becomes important.
    The first can be created by reading one line at a time and posting one at a time.
    The second can be created by reading the entire file as a single string and then posting using a single log statement.

  • I am having trouble establishing file association between .PDF files and Adobe Reader.

    I am having trouble establishing file association between .PDF files and Adobe Reader.  When I click on a .PDF file, Adobe Reader does not open the file.  I installed Adobe Reader on a Lenovo G480 laptop using Windows 8.  When I attempted to open a file called I believe G480_user_guide.PDF, a file called something like Nitro_PDF opened.  When I right clicked G480_user_guide.PDF and chose Open With, I found that Nitro_PDF was the default program for opening the file.  I tried to change to another program but found that Adobe Reader was not listed.  I chose the option for searching the computer for a file to open.  I found the folder Adobe in Program Files x64 but I was not able to find an executable.  Where is the Adobe Reader executable or what other method can I use for establishing file association between .PDF files and Adobe Reader.

    Yes, I have now learned how to make a search with the Google search engine.  I am gradually learning how to use my new Lenovo laptop computer with Windows 8.  I learned yesterday that I can make a search with the Google search engine if I enter the search query in the address bar of the Google Chrome browser.  I think it was the Bing search engine that gave me the sites advertising Adobe Reader download but actually provided the download of a reader other than Adobe.
    In my opinion, Windows 8 is significantly different from Windows 7 and that it has hazards and pitfalls.
    I thank all of those who have replied to the initial inquiry.

  • How to use the js in the case of not sure the file name into multiple files to PS?

    function place($path){
        var idPlc = charIDToTypeID( "Plc " );
        var desc28 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc28.putPath( idnull, new File( $path ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc28.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc29 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc29.putUnitDouble( idHrzn, idRlt, 0.000000 );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc29.putUnitDouble( idVrtc, idRlt, 0.000000 );
        var idOfst = charIDToTypeID( "Ofst" );
        desc28.putObject( idOfst, idOfst, desc29 );
        executeAction( idPlc, desc28, DialogModes.NO );
    for(i=1;i<=4;i++){
        place ("E:\\aaa\\"+i+".jpg");
    目前我的解决方案是,把多个文件提前修改成数字序列,然后用for循环调用,我想问的是,如果我不更改文件名,是否也可以同时导入多个文件?
    At present my solution is to advance the multiple files modified into a sequence of Numbers, and then use a for loop calls, I want to ask is, if I don't change the file name, also can import multiple files at the same time?

    You could use a file or folder selection dialog and then feed the selected files into the for-clause.
    var aFile = selectFile(true);
    alert (aFile);
    ////// select file //////
    function selectFile (multi) {
    if (multi == true) {var theString = "please select files"}
    else {var theString = "please select one file"};
    if ($.os.search(/windows/i) != -1) {var theFiles = File.openDialog (theString, '*.jpg;*.tif;*.psd;*.png', multi)}
    else {var theFiles = File.openDialog (theString, getFiles, multi)};
    ////// filter files  for mac //////
    function getFiles (theFile) {
        if (theFile.name.match(/\.(jpg|tif|psd|png)$/i) || theFile.constructor.name == "Folder") {
            return true
    return theFiles

  • Question about changing a file type into another file type

    Hello. This isnt a java question but you guys have been so helpful in the past I hope its ok if I ask this question for a friend.
    How can I import a scriptware file into Screenwriter 2000, or change a .scw file into a .tag file?
    Anyone who can help thanks.

    I know nothing about scriptware or Screenwriter. But, my only advice is to see if Scriptware can export some other file type (not necessarily a .scw file) that Screenwriter can read. Sometimes, when I have two text editors whose native formats are incompatible (like opening a paper typed in a new version of Microsoft Word using an old version of WordPerfect or something), I save the file as an RTF file, rather than in the native format. Maybe something like that applies to your situation, too.
    Hope that helps.
    Jason

  • Files turning into "Offline files" for no good reason. (Also: Hidden surprise

    So, as the title says. I have 2 different projekt files, containing the first and the second part of a smaller movie.
    The only problem is, i now need to merge the two files together so i can export them into a final file.
    Unfortunetly, if i import one of the projekt files into the other, almost all (about 80 %) of the files from the imported projekt are marked 'offline'.
    The hassle is, if i try to link them to the appropriate media i get an error saying that the target media is either unsupported or damaged.
    The thing is, they are neither unsupported nor damaged. If I were to open said imported projekt file from File->Open, all the movies (including the allegedly "damaged" ones, run smooth as greased lightning on rollerskates.
    So whom behold, the problem occurs for some reason when the projekt file gets imported.
    Deadline is approaching (Fast) (tomorrow to be exakt) and altough i could postpone it for a little while, I do not wish to as I am sure you understand.
    Clues? Solution? Mocking? Anything, I'll tear myself bald before this is solved.
    Also, for abovementioned hidden surprise: Things gets worse.
    I've already thought about exporting them individually, importing the exported movies into a new project and re-exporting them, just to finally get them together in a file, but when i try to export the first project I get the error "Adobe Premier Pro failed to return the video frame. Aborting". That is, if im lucky. Most of the time PPro just crashes without warning.
    I hope this made any sense. If someone help me completely solve the problem, i will upload myself doing a victory dance.
    If someone knows of a workaround, i will upload a picture of my right Toe. (if requested, of course)
    Thanks in advance!
    Kristoffer Haglund

    Hi guys, its me again. To late to edit the post so I'll have to make a new one.
    Much to my dismay I have now experimented on one of the "corrupted" 3gp/mpg Movie files. I have tried exporting them to a number of formats (14 to be exact), but each format carries some sort of problem. Either PPro doesn't take the file even to begin with, or just the audio or the video gets imported.
    I have also tried exporting the corrupted mpgs yet again through moviemaker, after which I took the exported moviemaker-file and tried linking it with the corrupt file in PPro.
    This almost seemed to work, until an error message popped up saying that it's an impossible action since the sourcefile in the timeline holds 1 audio channel, while the file I crafted through Moviemaker holds
    b 2 audio channels.
    Anyone know if this can be worked on somehow? If this was possible to fix, all problems would most likely be gone and the world be a happier place for all to live in.
    I have now given up on fixing the files, and instead I'm trying to find a work-around.
    I can think of two ways, both of them is as bad as it gets.
    b Workaround #1 :
    Export 2 faulty versions of EVERY corrupted sourcefile. One that holds the audio and one that holds the video. replace them with the original "corrupted" file in the timeline, and match the video and audio up. Repeat. Repeat. Repeat.
    Drawbacks: There is no guarantee of it to work.
    Will take a LONG time to pull of, and might be in vain.
    Also holds a great chance of producing other errors.
    b Workaround #2 :
    Pre-render as much as possible, and then using a program like Fraps to capture the movie in the preview window. After doing this, play it once again with only the audio, then match the two files up.
    Drawbacks: Creates an extremely lowquality movie.
    Might be impossible to eliminate all lag before shooting with fraps.
    But hey, a lowquality movie is better than no movie. This method is also less likely to produce other errors.
    b Workaround #3 :
    This is not so much of a workaround as it is a small glimpse of hope. I'd go to a friend of mine, install my Premiere on His computer and open the projekt file there. Then crossing my thumbs hoping he can export it on his machine.
    So, the bottom line is:
    b I need this finished.
    As much as i agree with you all saying that they shouldnt have shot it with cellphones, and i oughta return the money and tell them to shoot it for real, it is not a possibility. They are counting on me and i must not let them down.
    Again I apoligize for a bit of bad spelling and general messiness of my posts. Things get a bit too complicated for me to explain correctly and smoothly in what is not my native toungue. Even in my native toung i believe i would have problems explaining this.

  • High Priority:-How to convert XMLSchema file (.xsd ) into .rtf file

    Hi...
    Hope you are doing well.
    I request you to help us with an issue encountered on 'generating reports using XML Publisher', which is described as followed.
    We have taken report from Oracle Apps and stored as XML file , then converted into XML Schema (.xsd) through Stylus Studio and uploaded that file into XML Publisher Desktop.
    Now, we want to convert .xsd into .rtf file for the requirement.
    Please revert back if the issue is not clear enough.
    Your help is needed and appreciated.
    Thanks&Regards,
    Suresh.

    Hi Suresh,
    XSD file is an XML Schema Definition file, it is used to validate and XML file in making sure elements are of the correct datatype, mandatory elements exist etc...
    It cannot be used to create an RTF file, as there is no layout definition within an XSD.
    You will need to create the RTF manually in this case using MS Word and Template Builder.
    I don't fully understand what you are trying to acheive, so maybe you could clarify further, and I may be able to help a little more.
    Many Thanks,
    Cj

  • No file association for PDF files

    I have installed Adobe Reader on my Nokia E70 (Series 60 3rd edition). I am able to open PDF files, provided they are very small ;-) directly from within Adobe Reader, but not via File Manager. Does anyone know how to set the file association of .PDF extension to open with Adobe Reader?
    Cheers
    -- Mike --

    >It worked for me but the solution was not an intuitive one. Seems like Adobe should work out this kink for future customers.
    The fact that you had a problem suggests that it's your system, not Adobe that is the root cause. A successful and undamaged installation WILL create the proper file associations, and will even use the correct version icon for older files (in Windows, though, only one version of the application -- the last one installed -- will be associated with the open command from Explorer or Bridge).
    Peter

  • Problem of file association while copying files from the network.

    Hello,
    I have a network shared folder with Quark Xpress files on it. I own an Imac with MacOSX 10.4.3 where Quark Xpress is not installed but I want to transfer Quark files from this network share to an other.
    When I do this, the file association is missing on the copied file. The original has still the Quark icon, but the copied file has a blank icon and when trying to execute it from a mac with Quark Xpress installed, it does not recognize it (?). It's kind of a file association loose.
    For information, when I do the same manipulation using a mac with OS9 and Quark installed, I have no problem with the file association in output.
    Hope someone had the same situation to help me. In anyway, sorry for my English, I tried to do my best to explain my problem !

    Zip the files. Select the files, Finder->File->Make Archive, transfer them, and unzip them using the Finder or Stuffit Expander.

  • Reg :  Script spool file downloading into xl-file

    Dear friends,
    I need  to find the script spool no as well as the same script spool
    to be download into xl-file.
    Could u please give me guidelines, how to do that.
    Thanks and Regards
    V.Raja sekaran

    Thanks for your reply,
    My requirements is like  below,
    I am calling the script from report, In report i have a check box for excel download,
    If the user selected the option check box download into excel file than i need to indentify the spool number as well as download the script spool file into excel file.
    Thanks and regards
    V.Rajasekaran.

  • .dmg files forced into .xls files when downloading applications

    Why are dmg files being forced into xls files when I'm attempting to download applications from websites?
    MacBook1,1   Mac OS X (10.4.8)  

    Hi mospirit,
    first of all: WELCOME TO THE DISCUSSIONS!
    Sometimes files lose connection to their application. This can be solved quite easily though:
    1. Download Cocktail, OnyX or Tiger Cache Cleaner and reset the "Launch Services Database".
    2. Click any .dmg and type Apple-i to get the Information window. In the pop-up called "Open With" select "Other" and navigate to /System/Library/CoreServices. There select DiskImageMounter as default application. Finally back in the Information window click "Change All".
    If this answered your question please consider granting some stars: Why reward points?

  • File association for .rexx files

    Hi all,
    This will be my first post here. I've searched the web (and this forum) for an answer to my question, but have up untill now not been able to find it.
    I have installed Regina Rexx, cuz I want to use that language as my command language. I've used it professionally for years in an IBM mainframe environment and at home on my Linux and Micro$oft machines.
    Now I have it installed, and it works. Running rexxpcs gives me a whoppin' 8.462.623 executed clauses per second!
    Gerard-iMac:~ gerard$ rexx /usr/share/regina/rexxcps.rexx
    ----- REXXCPS 2.2 -- Measuring REXX clauses/second -----
    REXX version is: REXX-Regina_3.5 5.00 31 Dec 2009
           System is: UNIX
           Averaging: 10 measures of 30 iterations
           Performance: 8462623 REXX clauses per second
    Now I would like to be able to start my xxxxxx.rexx files from within the finder. When I right click on such a file and open it's info pane - this is what every page on the subject suggests - I seem not to be able to allocate /usr/bin/rexx with my file(s).
    Questions:
    1. How do I proceed?
    2. Why (if not) does it not work this way?
    Bear in mind that, however I consider myself computer literate, I am relatively new to the Apple domain...
    Thanks in advance,
    Gerard

    Ok, I thought that's what you were trying to do but I just needed to be sure.
    Since these kind of files are rexx interpreter files they are not applications and therefore cannot be directly executed from the finder.  And while you could get them to open in terminal the terminal has no way of knowing you want to use rexx on them.  So you need to encapulate (wrap) them to make them look like they are finder applications.
    There are a number of shell command excapulators/wrappers.  One of my favorites is Platypus.   You can download it from macupdate.  Click that macupdate link because it suggests other shell wrappers than you may prefer as alternatives.  I'm mentioning this because if the shell commands generates any output (stdout, stderr) then not all of these wrappers handle output.  I haven't looked at Platypus for some time so I don't recall if it does or doesn't.  Maybe some of the alternatives do.
    If the command doesn't generate any stdout/stderr output then Platypus (and many of the others) should work ok.  The end result is what looks like a normal finder application that you can execute.
    Oh, almost forgot.  You could also encapsulate the shell commands using applescript.

  • Can't import LIVE TYPE files .ipr into FCP -  FILE ERROR: UNKOWN FILE.

    I have had this problem for a while and simply just worked around it. But now I am editing so much more that I want it the way it use to be.
    The Problem is FCP 6 will not let me import LIVE TYPE files. I have to render them into an .mov 1st in livetype. I use to be able to just drag the file into FCP and render it there after I tweeked it. Now it won't, it gives me this error- FILE ERROR: Unknown File.
    I have already uninstalled Live type along with its PLIST as well as FCP. Re installed and still keep getting the same error. I can't remember when it started, all I know is I want it fixed.
    Thank you for any assistance anyone can offer.

    What are the Project Properties settings? do they match the Sequence setting in FCP?
    What elements are used in your LiveType composition?
    Are you including images or background video?
    If so, post the codec that the video uses. If there are images, the file type and color space.

  • Sequence tag error while importing the SSL certificate into ".keystore" fil

    I have created the ".keystore " file successfully and also imported the "root.cer".
    but while importing the SSL certificate it says like
    "keytool error: java.security.cert.CertificateException: IOException: Sequence ta
    g error" (I got the certificate from Verisign)
    How to resolve this Error?
    can anyone help me?
    mail to:: [email protected]
    Thanks in Advance

    Hi,
    I resolved this error by making it sure that there are no extra spaces or unwanted caracter copied while copying the certificate response from the CA. Make sure you are copying the certificate response properly. In my case, some extra space was getting copied so after re-copyinf it properly, it worked.

Maybe you are looking for

  • Function and Operation to Call the Specific Infotypes in Time Management !

    Hi There, I am trying to write a PCR to Generate the Maternity Leave Quota, for that i would like to Query the Fields of 0080 Infotypes but am not able to find any Operation or Function to Query 0080 infotype, could any one plz let me know if there i

  • AWARE 5.2/ Audio problem running on some local computers

    Hi everyone, I received emails from clients saying that when they run the packaged pieces from the CD, it works great. When they copy the whole CD contents into some of their local machines, some audios are not playing. This occurs on lessons loaded

  • Create Log for PL/SQL

    Hi all, Is it store precedure create any log file when I do insert or delete in my procedure? Thank in advanc. eg. create my procedure begin insert into mytable()select * from employee; delete from mytable where id < 100; end

  • Installing New Version of Eclipse

    I am trying to upgrade my current version to Eclipse 3.3. I have played the game of installing the Flex plug-in into Eclipse 3.2 copying adobe folders and jars into Eclipse 3.3. All seams ok until the License Key. The new Eclipse will not accept my v

  • Battery performance affected by Mountain Lion

    I have a macbook pro 13 inch 2011 and I have noticed that the battery performance of my laptop has gone down after I upgraded to Mountain Lion. What should I do to improve the performance of my laptop?