Wine + KDE -- default program for .exe on upgrade

I find that every time I pacman -Syu, WINE gets set as the default program for opening windows .exe files.
Since I'm a sysadmin for several mail servers, I occasionally have to open suspicious e-mails and see what they are, including examining the attachments. I'm worried that one day I'll accidentally double-click one of the .exe ones and that wine will run it.
I'm sure WINE doesn't have the level of windows compatibility required for spyware & viruses to do much, but it still makes me nervous.
I always go into the KDE settings and remove this file association as soon as I notice it, but I'm wondering if there's any way to make it stay permanently gone?
Is this something the package maintainer for WINE and/or KDE has any control over, or is this the wrong place to complain about it?
~Felix.

kensai wrote:Well, I am the wine package maintainer, so email me your suggestions and I will discuss with other developers. Thanks.
Oh, cool. Anyway, I think I figured out a way to fix it -- just remove this line from usr/share/applications/wine.desktop in the wine package:
MimeType=application/x-ms-dos-executable;application/x-msdos-program;application/x-msdownload;
That'll stop KDE (and probably everything else that uses /usr/share/applications as its mime provider database) from automatically associating it.
I know the .desktop file will then be technically incorrect by not listing WINE as being a handler for any mime types, but this way users will have to set it up manually if they want the ability to run strange programs by accident ;)
You could also add a message about it to the pacman install, something like
==> by default, WINE is not associated with Windows executables for safety reasons.
If you want to run ANY Windows executable by just double-clicking it (NOT recommended),
you'll have to do this as root:
echo "MimeType=application/x-ms-dos-executable;application/x-msdos-program;application/x-msdownload;" >> /usr/share/applications/wine.desktop
~Felix.

Similar Messages

  • After Upgrading Acrobat Reader XI to Acrobat XI Pro the previewer in Outlook and Windows Explorer doesn't work.  I have to set the default program for .pdf's to Acrobat Reader inorder for the previewer to work.

    After Upgrading Acrobat Reader XI to Acrobat XI Pro the previewer in Outlook and Windows Explorer doesn't work.  I have to set the default program for .pdf's to Acrobat Reader in order for the previewer to work.
    Can anyone recommend a solution?

    If I set the default program for viewing PDF as Acrobat XI Pro the a PDF file will open with Acrobat XI Pro, but in Outlook I will get a white screen and the information bubble "This file cannot be previewed because there is no previewer installed for it" and in Windows Explorer I get a white screen in the preview pane.
    My Acrobat version is 11.0.10
    I am running Windows 7 Professional with Service Pack 1
    My Internet Explorer is Version 11.0.9600.17691
    Update Versions 11.0.17 (KB3032359)
    I am running Microsoft Office 2013

  • Cannot set default programs for a file extension in Gnome

    After a gnome upgrade (cannot remember when), I can no longer set the default program for a particular file extension by right clicking the file in nautilus -> going to "properties" -> going to "open with" tab -> highlighting a program -> pressing "set as default".

    The program I was trying to set was totem for default video playback; wine had made windows media player the default player prior. Interestingly, once I installed gnome-mplayer; the default program changed to gnome-mplayer and I was then able to switch default programs. This error may be related to wine.
    Last edited by Bluerider (2013-07-05 23:07:59)

  • How do you set default programs for all users when deploying Windows 8.1?

    I have my Windows 8.1 image set up the way I want including the start screen, theme, etc. But how can I set the default programs for all users. Most of out computers are non-touch and I want the desktop apps (e.g. Windows Photo Viewer), not the store apps
    to be the default for opening pictures, videos, etc. Can that be done?

    Great question, this has been bugging me too!
    So, I did some research by using "Set Default Programs" app in Windows 8. Then I ran the super ProcMon.exe tool from Sysinternals.com <Thanks Mark!>
    After filtering out the junk, I could see some *interesting* writes to the registry:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice]
    "Hash"="57y87/ogggU="
    "ProgId"="PhotoViewer.FileAssoc.Jpeg"
    But the "Hash" part had me concerned. I did some internet searching for the hash, and came across a post and a pointer to a blog with some answers.  This is both good news and bad.
    Background:
    One of the problems with Windows XP is that any program can come in and party on the entire system. No, I don't want you to put a shortcut on the desktop, install a crappy IE Toolbar, and change the default file association for *.jpg files to your app, I
    just wanted to play a stupid game. Since Windows 7, Microsoft has been attempting to block that functionality from the stupid applications, and give them back to the user. Take note of the last line in the ITaskbarList3 interface:
       Applications cannot programmatically pin themselves to the taskbar. That functionality is reserved strictly for the user.
    Of course that sucks for us IT Pros who may wish to create *default* working environments for corporate images, but there are some tricks we can do.
    Solution:
    This blog appears to have the answer:
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    New for Windows 8 is a dism command: /Get-DefaultAppAssociations that allows you to export a control case from a known good computer. Microsoft the supports importing the exported xml file via GPO. For example, before I changed the file association, .AVI
    was pointing to the Modern App, after the change the /export-DefaultAppAssociations shows change to the new app:
    From:
    <Association Identifier=".avi" ProgId="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt" ApplicationName="Video" />
    To:
    <Association Identifier=".avi" ProgId="VLC.avi" ApplicationName="VLC media player" />
    I am still doing some investigation to see if a GPO is required, or if you can inject the association into a local user account. Also, if you do have some Modern Windows 8 Touch Tablets, it would recomend keeping most of the Modern App defaults in place,
    perhaps seperate GPO's for Desktops/Laptops vs Tablets?
    -k
    Keith Garner - keithga.wordpress.com

  • I am unable to have Elements 12 recognized by Windows 7 as the default program for the jpg famuily of files. What to do?

    Windows 7 does not recognize Elements 12 as a candidate default program for jpg files. Any suggestions?
    The Elements 12 is authorized and works properly but does not show up in the Control Panel Default programs. (it is listed as a loaded program elsewhere in the Control Panel.)
    I have tried Uninstalling it and re-installing it several times with no success. I have used nearly all previous versions of Elements with no problem.

    Hi Robbie,
    The editor program is NOT under the organizer path as you mentioned in your last message. The actual editor program is at the location I gave in message #1 i.e. as follows
    "C:\Program Files (x86)\Adobe\Photoshop Elements 12\PhotoshopElementsEditor.exe"
    The one under the organizer is actually the Welcome screen which you have probably set up to go directly to the editor.
    If you go to the Open With screen I showed in message #3 and browse to the actual editor as given above, it should show up in your list.
    If it doesn't, then Windows is playing up again - and we have to take extra steps.
    Brian

  • How do you globally change the default program for opening photo files?

    I want to adjust my system so that when I double click a photo file, Preview does not automatically launch.  I work in Photoshop all the time and would prefer that it be the default program for pictures.  I have already changed the "when you insert a picture CD" command in CD's & DVD's in System preferences but this does not have any effect on when I double click on a picture file to open it; Preview always launches and opens the picture there.  That automatic opening behavior is fine but I need it to happen in Photoshop.

    Assuming your pictures are all .jpg files: select any .jpg by clicking once on it in the Finder, then press Command+I to Get Info about it. In the Open With: section of the Get Info window, change the preferred application from Preview to Photoshop, then click the Change All button.
    Now any .jpg file that you double-click will open in Photoshop.

  • Choosing Default Program for Opening .doc files

    Hi all,
    A couple of days ago I somehow managed to change my default program for opening .doc files to Pages and I would rather use Microsoft Word as the default. I dont know how I ended up changing this default, but I would like to know how to put the default back to MS Word.
    Thanks for any help!

    Choose any one of the files you want to change. Then, command-i to "Get Info". Open the disclosure triangle under "Open With" choose "Microsoft Word" then click on "Change All".
    -mj
    [email protected]

  • Making Pages the default program for opening text documents

    How do I make Pages the default program for opening text documents? Every time I open a text doc it launches in TextEdit. This must be an easy fix, but I can't seem to figure it out.

    Select a text document > Menu > File > Info > Open With > Browse into your appliCations folder > iWork > Pages > OK > Change All…+
    Peter

  • How can I change the default program for the external applications editor?

    I have read the on line directions for this and it reads "select a file type in the left pane."   I do not see where this is in the left pane.  All I see in the left pane is "Browser start pages" and a "How do I " Pane.  Nothing with file types.

    Hello,
    Welcome to Adobe Forums.
    In order to change the default program for the external applications editor. Please follow the steps as mentioned below.
    Click on Edit menu then choose preferences.
    Once the preferences dialog box open.
    click on file editors.
    On the Left pane you will find all the file types which you want to edit .
    On the right hand side you will find the editors for that specific file type.
    If you want to add any other application you need to click on + symbol at the top of right pane.
    Select the path of that application which you want to apply.
    clcik on open.
    If you want to make it primay you can click make primary option available at the right hand top. For more detials please check the screenshot below.
    Regards,
    Rajeev

  • How do i change default program for opening mp3 files

    Hi all, i would like to change the default program for opening MP3 files, it is currently iTunes, i would like it to be MPlayerX or QuickTimePlayer, ii am sure it is easy once i know where to look, it is easy in Windose, is has just got to be easier with my Apple
    Tim

    Tim,
    Right click on one of your MP3 files and select "get info".  In the get info screen you can select the default program to open the file.  Then select Change All..  to make it the default for all MP3s.
    Regards,
    Captfred

  • How do I make Pages the default program for .doc files?

    How do I make Pages the default program for .doc files without having the need to change the default program for each individual.doc file?

    Navigate to a .doc file.
    Ctrl click the file
    Choose Open with and then go down the list, past pages, to other
    Navigate to pages
    Before you click Open make sure you click the 'Always open with' check box.
    You should be okay.
    You can do a similar think by selecting the file, Choosing File-Get Info
    Then open the Open With Disclosure triangle.
    select pages and then click CHANGE ALL
    Hope this hleps.
    M.

  • Set pages to be default program for *.doc files

    Is it possible to set pages to be the default program which my computer will ALWAYS use to open a MS word document? In windows i could set default programs for specific file types, e.g. .jpg, .mpg, mp3. I did not have to assign a program to open the program every single time. As far as I can tell , I have had to request pages to open my word documents every time i open a word doc. for the first time. Although I can set pages to be the default program for that one file, i want it set to ALWAYS OPEN ALL WORD DOCS. , until further specified. Any suggestions?
    thx.

    Highlight a known Word document in the Finder, highlight it & choose Get Info from the File menu. In the Get Info box, click the triangle next to "Open With." Click on this drop-down menu & choose Pages. If Pages is not a choice, choose "Other" & navigate to the Pages application. Now click the "Change" button under the text that asks if you want to open all documents like this with Pages. You can then double-click the Word documents & they will open in Pages. Note that the icon for the Word files will have a plain, white icon.

  • Latest Lithroom 5.6 does not recognize my .cr2 raw file format and Windows 7 it asociates with my older raw plug in in Ps CS5.5. I am not able to change default program for .cr2 in the properties pannel...

    Latest Lithroom 5.6 does not recognize my .cr2 raw file format and Windows 7 it asociates with my older raw plug in in Ps CS5.5. I am not able to change default program for .cr2 in the properties pannel...
    every new released update of Lr from v 5.2 changed somethin in my Windows 7 Professional settings. I am stucked. Can somebody help me please? Many thanks. Andrej

    Hi Jim,
    yes after I imported my .cr2 raw files into new catalog it started to work. Windows 7 still does not recognize them but I can edit them as you said within the Lr5.6 and then export them into .psd or .dng files...as needed.
    I bought Lr5 only because I got present - my new camera Cannon 70D and because my older Photoshop CS5.5 raw plugin does not recognize. cr2 files.
    Many thanks for your help.
    Andrej.

  • How to set default program for pdf files

    I was wondering if anyone knows how to change the default program for opening a file type. For example I would like to set Adobe Acrobat as my default program for opening pdf files instead of preview
    thanks

    Hi and Welcome to Apple Discussions
    Control-click a pdf file and choose "Get Info". In the Info window choose which application to open the file with and then click on the "change all" button. Voila!
    Matthew Whiting

  • How do I make Adobe Reader NOT my default program for reading pdf files?

    I installed Adobe Reader and made it my default program for reading pdf files.  I'd like to undo that and go back to "preview" as my default.

    Sure you are following instructions:

Maybe you are looking for

  • Logical System field in BD10/BD14 need as a Mandatory Field

    Hi All, Good Day, We have Logical System field in BD10 or BD14 etc.. TCodes and I would like to make this field as a Mandatory field. The reason for this is, while sending the Materials using BD10, and If I haven't enter any value for this field, IDO

  • GX60 shows two video cards? 7970M and 8650G.

    I updated to the latest ati drivers, and now my laptop, GX60, thinks I have two video cards installed, a HD 7970M (true) and a HD 8650G (not true). If I uninstall the 8650 under device manager, I am then unable to run the catalyst control manager, as

  • Fan problem...

    Can anyone tell me why my fan is a little loud on my macbook pro. I have the newest model, and I dont have that much stuff on here at all, I am running with Lion. When I got it 4 months ago I could not hear the fan, but as time goes on the fan gets l

  • Can I create a shortcut for Rotate Spread?

    As the title suggests Is there a sneaky way to get a keyboard shortcut for the Rotate Spread option? Thanks, Phil

  • Page cannot be dispalyed errors on apex 3.0

    Hi, We had an application express 3.0 envirnoment and today morning we encountered the page cannot be displayed errors which accessing the page.When i stop and start the http server,we can access the pages for 15 min but again after that the page can