Bug 744559

Summary: leksah.desktop passes haskell source to leksah which doesn't open file from commandline
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: leksahAssignee: Narasimhan <lakshminaras2002>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: haskell-devel, lakshminaras2002
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: leksah-0.10.0.4-4.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-22 13:15:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jens Petersen 2011-10-09 11:18:29 UTC
Description of problem:
The Leksah desktop directs mime for haskell source to Leksah.
However leksah doesn't load haskell source files from the CLI.

How reproducible:
100%

Steps to Reproduce:
1. install leksah
2. try to open a haskell source file from a browser
  
Actual results:
2. File sent to leksah, which does not open source files
   from the commandline.

Expected results:
2. Leksah to display the file or not to be used to
   display mime haskell source.

Comment 1 Jens Petersen 2011-10-09 11:55:55 UTC
I suggest making the following change:
(also since using leksah as a sourceviewer is probably overkill).

index e179cca..52c21a3 100644
--- a/leksah.desktop
+++ b/leksah.desktop
@@ -7,4 +7,4 @@ Exec=leksah %F
 Icon=leksah
 Type=Application
 Categories=GNOME;GTK;Development;
-MimeType=text/x-haskell;text/x-literate-haskell;application/leksah-session;application/leksah-workspace
+MimeType=application/leksah-session;application/leksah-workspace;

Comment 2 Narasimhan 2011-10-10 13:34:44 UTC
Hello, I have a fix for this. It will ensure that both .hs or .lkshw can be opened from via .desktop.
Will update the package.

Comment 3 Fedora Update System 2011-10-10 15:24:19 UTC
leksah-0.10.0.4-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/leksah-0.10.0.4-4.fc14

Comment 4 Fedora Update System 2011-10-10 15:24:28 UTC
leksah-0.10.0.4-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/leksah-0.10.0.4-4.fc15

Comment 5 Fedora Update System 2011-10-10 15:24:37 UTC
leksah-0.10.0.4-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/leksah-0.10.0.4-4.fc16

Comment 6 Fedora Update System 2011-10-11 02:57:32 UTC
Package leksah-0.10.0.4-4.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing leksah-0.10.0.4-4.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14099
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-10-20 04:01:11 UTC
leksah-0.10.0.4-4.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2011-10-20 09:56:01 UTC
leksah-0.10.0.4-4.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2011-10-20 09:56:52 UTC
leksah-0.10.0.4-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Jens Petersen 2011-10-22 08:40:18 UTC
Sorry I still can't open haskell files from my browser
and I still see:

MimeType=text/x-haskell;text/x-literate-haskell;

in /usr/share/applications/leksah.desktop .

I think you need to remove that too.

Comment 11 Jens Petersen 2011-10-22 13:15:08 UTC
Sorry, my confusion, I had a old user copy of leksah in my homedir.

Working fine for me now.