Bug 286074 - KPat saved game files should have a mimetype and file extension
Summary: KPat saved game files should have a mimetype and file extension
Status: RESOLVED FIXED
Alias: None
Product: kpat
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 07:13 UTC by Parker Coates
Modified: 2011-11-08 07:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.8


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Parker Coates 2011-11-08 07:13:13 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Loading, saving, and file-managing KPat saves could be made much more convenient by giving the files a mimetype and file extensions. It would make finding the files easier when loading them. It would give files a consistent extension when saving them. Clicking on a save file in a file manager would automatically launch KPat for the user. Users would no longer wonder where the heck that "spider.save" file in their home directory came from.

Reproducible: Always

Steps to Reproduce:
-

Actual Results:  
-

Expected Results:  
-
Comment 1 Parker Coates 2011-11-08 07:22:41 UTC
SVN commit 1263112 by coates:

Add a mimetype for KPat saved games.

I'm not really sure why this wasn't done a long time ago, but KPat
saved games now have their own mimetype: vnd.kde.kpatience.savedstate.
The files are identified by having either a .kpatience file extension
or a "kpat" XML DOCTYPE. Clicking on saved games should now launch KPat
to open them, as well.

BUG:286074
FIXED-IN:4.8

 M  +1 -0      CMakeLists.txt  
 M  +1 -0      kpat.desktop  
 A             mimetypes (directory)  
 A             mimetypes/CMakeLists.txt  
 A             mimetypes/kpatience.xml  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1263112
Comment 2 Parker Coates 2011-11-08 07:22:43 UTC
SVN commit 1263113 by coates:

Make use of the new mimetype in the load and save dialogs.

File dialogs are now filtered by default to only show KPat save files.
The save dialog now automatically adds the .kpatience extension.

CCBUG:286074

 M  +28 -3     mainwindow.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1263113