Bug 1380868 - Use desktop file from sources than fedora specific desktop file
Summary: Use desktop file from sources than fedora specific desktop file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: spyder
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mukundan Ragavan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-30 20:54 UTC by jakob.jakobson18
Modified: 2017-05-15 12:52 UTC (History)
3 users (show)

Fixed In Version: spyder-3.1.4-2.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-15 12:52:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.