Bug 1380868

Summary: Use desktop file from sources than fedora specific desktop file
Product: [Fedora] Fedora Reporter: jakob.jakobson18
Component: spyderAssignee: Mukundan Ragavan <nonamedotc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: nonamedotc, ovasik, thozza
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spyder-3.1.4-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-15 12:52:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jakob.jakobson18 2016-09-30 20:54:33 UTC
Description of problem: 
fedora specific spyder.desktop file doesn't has a mime-type conncetion for x-python files. So in GNOME it's not possible to open python files with spyder via a double click as spyder doesn't show up in the list  of available applications.


Version-Release number of selected component (if applicable):
24 (as far as I know, others version probably as well)


How reproducible:
install python3-spyder via normal package management, open file manager, try to open python file 


Steps to Reproduce:
1. install spyder
2. open nautilus
3. create python file with .py ending
4. double click on python file


Actual results:
dialog with available programs for python files opens but spyder is not listed


Expected results:
dialog with available programs for python files opens and spyder shows up


Additional info:
As fedora specific spyder.desktop file

[Desktop Entry]
Type=Application
Exec=spyder3
Name=Spyder (Python 3)
GenericName=Scientific Python Development Environment
Comment=A simple and lightweighted python IDE with MATLAB-like features
Icon=spyder
Terminal=false
Categories=Development;IDE;
X-Desktop-File-Install-Version=0.22

doesn't contain a mime-type line. The spyder.desktop file from sources 

[Desktop Entry]
Version=1.0
Type=Application
Name=Spyder3
GenericName=Spyder3
Comment=Scientific PYthon Development EnviRonment - Python3
TryExec=spyder3
Exec=spyder3 %F
Categories=Development;Science;IDE;Qt;
Icon=spyder3
Terminal=false
StartupNotify=true
MimeType=text/x-python;

contains the necessary mime-type line.


Solution:
Take spyder.desktop file from sources for installation.

Comment 1 Mukundan Ragavan 2016-10-01 00:08:49 UTC
Thanks for the report.

I will push this along with update to Spyder 3 (hopefully soon).

Comment 2 Fedora Update System 2017-04-26 02:11:51 UTC
spyder-3.1.4-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-11807697b7

Comment 3 Fedora Update System 2017-04-26 21:52:21 UTC
spyder-3.1.4-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-11807697b7

Comment 4 Fedora Update System 2017-05-05 01:10:28 UTC
spyder-3.1.4-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5dde8bb647

Comment 5 Fedora Update System 2017-05-05 22:38:23 UTC
spyder-3.1.4-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5dde8bb647

Comment 6 Fedora Update System 2017-05-15 12:52:21 UTC
spyder-3.1.4-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.