.sla files (Scribus) can't open with a double click

Bug #6031 reported by Nequeo
18
Affects Status Importance Assigned to Milestone
scribus (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Scribus files (.sla) are plain text files. Nautilus associates them with Scribus, but won't let you open them with a double click.

-----
'Cannot open xxxx.sla

The Filename "xxxx.sla indicates that this file is of type "Scribus File". The contents of the file indicate that the file is of type "plain text document". If you open this file, the file might present a security risk to your system.'
-----

You can open the file by right clicking and selecting 'open with'.

Obviously, 'this behaviour is by design', and in many cases is a good idea. But if there was some way to let Nautilus know that Scribus files ARE of type 'plain text document', so it doesn't complain when opening, that would be a good thing to do when Scribus is installed.

Changed in nautilus:
assignee: nobody → gnome
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. That's a scribus issue, it ships its own .xml file for mime description and it should have some mime magic part

Changed in scribus:
assignee: gnome → nobody
Revision history for this message
P Linnell (mrdocs) wrote :

I have to disagree: the PACKAGING file in the sources have notes to enable this. I know nothing about .deb packaging but in rpm distros this works fine.

"* We have included a scribus.xml file for updating the mime info database.
We are still missing some locales, but in our testing it works properly.
We are awaiting IANA approval for our mime type.

An example command to install and refresh the mime database in a spec file
(distro specfic macros might vary):

%install

install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/mime/packages/}
install scribus.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages/scribus.xml

%post
umask 022
[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
[ ! -x /usr/bin/update-mime-database ] || /usr/bin/update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||:

%postun
umask 022
[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
[ ! -x /usr/bin/update-mime-database ] || /usr/bin/update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||:"

Revision history for this message
Adrien Cordonnier (adrien-cordonnier) wrote : LaTeX files associated with Scribus

In Kubuntu, Scribus is associated with the text/plain Mime format, yet it is the last in the program list. Unfortunately, it is then associated with the tex extension as it is also plain text files, but here it is the first in the list. Thus one has to manually change the order to be able to open correctly LaTeX files (and Scribus cannot be removed from the list although it cannot open such a file)

Revision history for this message
DaveDorm (davedorm) wrote :

I created a document in the Windows version of Scribus. I tried to open it in Kubuntu's package of Scribus and it tells me that the SLA file is in the wrong format. It will open in Kate just fine, and it LOOKS like valid XML from what I can tell.

Any ideas? Should I download it from Scribus' home page and not use the Kubuntu package?

Thanks!

Revision history for this message
P Linnell (mrdocs) wrote : Re: [Bug 6031] Re: .sla files (Scribus) can't open with a double click

On Tuesday 20 June 2006 23:13, DaveDorm wrote:
> I created a document in the Windows version of Scribus. I tried to
> open it in Kubuntu's package of Scribus and it tells me that the
> SLA file is in the wrong format. It will open in Kate just fine,
> and it LOOKS like valid XML from what I can tell.
>
> Any ideas? Should I download it from Scribus' home page and not use
> the Kubuntu package?
>
> Thanks!

The windows version is 1.3.x and the Kubuntu version is 1.2x. Scribus
1.2.x cannot open 1.3x files and 'back saving' them to 1.2.x from
1.3.x is not feasible with the new file format.

Try grabbing scribus-ng from http://debian.scribus.net

Peter

Revision history for this message
Patrik Rydberg (patrik-rydberg) wrote :

I can confirm that this behaviour still exists in edgy and it is quite annoying for a user. When you open nautilus it looks like a file is associated with Scribus, it says that it is a scribus file. But once you click on it it immediately recognises it as a plain text file and the open on double click action won't work.
Will this be fixed for feisty?

Revision history for this message
Phil Bull (philbull) wrote :

I can confirm this, feisty 1.2.5.dfsg-5ubuntu3.

Changed in scribus:
status: Unconfirmed → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

Is this still a problem in Gutsy with Scribus 1.3?

Changed in scribus:
status: Confirmed → Incomplete
Revision history for this message
Pandanus (pifflix) wrote :

I am still having similar problems, gutsy 1.3.3.9.dfsg-1ubuntu1
In nautilus I have the choice to set scribus as default for text files, but then obviously all text files will be associated to scribus which is pretty annoying.
Actually my usr/share/mime/scribus.xml is empty but I have no idea if that could have changed through reassigning the default for text files a few times before I had look at it.
Hope that helps and that the issue gets resolved at some point

Changed in scribus:
status: Incomplete → Confirmed
Revision history for this message
Alecz20 (alexguzu) wrote :

My I add that this occurs with .txt files as well?

I created a file and gave it the extension .txt in which I keep my WPA key.
Initially upon double-click I got a prompt to "Display" / "Run" / "Cancel". Running a text file is still a bit of mystery to me (as a new linux user), but anyhow I made something so it would always display.

Now when I double-click I get the same message as the OP:
The Filename "xxxx.txt indicates that this file is of type "text document". The contents of the file indicate that the file is of type "plain text document". If you open this file, the file might present a security risk to your system.'

This message is very confusing. Text Document vs Plain Text Document?
Opening from console is fine "gedit xxx.txt" also Open with... is fine.

If I open the file, save it without an extension then add one it is fine.

Revision history for this message
yareckon (yareckon) wrote :

Even if the apps don't have their magic mime crap together (which it looks like scribus does, but ubuntu packagers don't use it?) ubuntu should allow one to associate a file with an application EITHER by mime type or by extension.

Revision history for this message
aexl (aexl) wrote :

yareckon wrote:
>...ubuntu should allow one to associate a file with an application EITHER by mime type or by extension.

yes you are right.
it might be worth opening a separate issue for this.

Revision history for this message
aexl (aexl) wrote :

>...ubuntu should allow one to associate a file with an application EITHER by mime type or by extension.

at least in kubuntu you can do this: konqueror > settings > konqueror > file associations
there i entered some file name patterns and this issue is solved for me.
the pattern description is found in ~/.local/share/mime/packages/application-scribus.xml
i attach this for gnomers (some forum post told me they have no gui for this, but the file should work, then you have a mimetype application/scribus which you can assign)

as for the packaging:
my scribus version 1.3.3.12.dfsg-1ubuntu2 has a file /usr/share/mime/packages/scribus.xml
copying this to ~/.local/share/mime/packages/ also seems to do the job.

no clue why it doesnt work in its original location.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.