Extension .scriv in Linux (Ubuntu)

Na
Nauta
Posts: 16
Joined: Sat Nov 09, 2013 4:32 pm
Platform: Mac + Linux

Sat Nov 15, 2014 6:30 pm Post

How could I associate the extension of Scrivener's files (.scriv) with the Scrivener application?

When I click on a XXX.scriv it is opened only as a folder. If I right-click, I see "Open" but not "Open with other application", for this extension is seen as it would be a folder. I have edited the file /etc/gnome/default.list and added "text/scriv=Scrivener.desktop" or "application/scriv=Scrivener.desktop", but without success. So, any idea about it?

Thank you.

User avatar
r6d2
Posts: 735
Joined: Fri Aug 23, 2013 4:50 pm
Platform: Mac + Windows

Sat Nov 15, 2014 7:46 pm Post

You actually have to open the project file inside the .scriv folder, the one which has a .scrivx extension. Try associating that extension and see if it works.
r6d2

Beware of realism when writing. Avoid the usual zoo inhabitants. Summon the unicorns and the tritons, and give them reality!
--Julio Cortázar

Na
Nauta
Posts: 16
Joined: Sat Nov 09, 2013 4:32 pm
Platform: Mac + Linux

Sat Nov 15, 2014 8:19 pm Post

r6d2 wrote:You actually have to open the project file inside the .scriv folder, the one which has a .scrivx extension. Try associating that extension and see if it works.


Thanks for your answer. Yes, thus it works fine... But, does it mean that I must go allways first inside the folder "XXX.scriv"? Is there no way to associate this extension (scriv) with the app? In fact, on Macs it goes without this problem. Why in Linux it seems to be impossible?

Anyway, thanks a lot for your help.

User avatar
xiamenese
Posts: 4370
Joined: Mon Jan 29, 2007 1:32 am
Platform: Mac
Location: London or Exeter, UK.

Sun Nov 16, 2014 3:16 am Post

Because that’s the way OS-X works. On a Mac, it’s a “package” … what looks like an ordinary file, but is in fact a folder with multiple contents. The package format doesn’t exist on Windows or Linux, so you see the folder structure. The .scrivx file was introduced as part of the Mac version 2 upgrade in order to make it possible to use projects across platforms. So yes, if you’re on Windows or Linux, until those OSs introduce package formats, you’ll have to open the yourproject.scriv and click on or whatever the project.scrivx file inside.

Mr X
The Scrivenato sometimes known as Mr X.
iMac 27" (late 2015) 10.15.4, 24GB RAM, 512GB SSID
MBP17" (late 2011) 10.13.6, 16GB RAM, 2TB SSID
2017 iPad, iPadOS 13.3, 128GB, Apple Pencil
Scrivener, Scapple, Nisus Writer Pro, Bookends …

Na
Nauta
Posts: 16
Joined: Sat Nov 09, 2013 4:32 pm
Platform: Mac + Linux

Sun Nov 16, 2014 12:53 pm Post

Thank you very much for your explanation, Xiamenese. I understand now the problem. I naïvely supposed the fact that OS-X and Linux are unix-like systems meant that the format of the app had to be more or less the same. So, either Literature and Latte prepare totally different packages for each system other we have to look inside the package... Isn't it? Well, it doesn't matter. I prefer this option than not to have Scrivenr in linux at all.

Best regards and thanks again.

User avatar
xiamenese
Posts: 4370
Joined: Mon Jan 29, 2007 1:32 am
Platform: Mac
Location: London or Exeter, UK.

Sun Nov 16, 2014 1:29 pm Post

No, the package format is down to Apple. Many OS-X apps use it, including Pages, I believe, and Final Cut Pro X and so on. Because they appear in the finder looking like files, most users consider they are files and have no need to know otherwise. If you right-click on one of your Scrivener projects on your Mac and choose “Show Package Contents” from the drop-down menu, you will see that under the hood it is exactly the same as the project on Linux … it’s just all hidden in the package.

Mr X

Edit … addendum: and if you start a project on your Linux machine, and open it on your Mac, you’ll find that it will appear there as if it were a single file.
The Scrivenato sometimes known as Mr X.
iMac 27" (late 2015) 10.15.4, 24GB RAM, 512GB SSID
MBP17" (late 2011) 10.13.6, 16GB RAM, 2TB SSID
2017 iPad, iPadOS 13.3, 128GB, Apple Pencil
Scrivener, Scapple, Nisus Writer Pro, Bookends …

User avatar
Jaysen
Posts: 6235
Joined: Mon Dec 17, 2007 4:00 am
Platform: Mac + Windows
Location: East-Be-Jesus-Nowhere SC, USA

Sun Nov 16, 2014 1:42 pm Post

Actually windows does something similar (or rather the MS bloatware) with things like mail PST, docx, and a few other extensions. There are hacks to extend it to other extensions as well.

But for linux, of you really want "one click, use a shortcut in your window manager. Just be sure to set set the "run in" directory to where the scrivx is located.
Jaysen

I have a wife and 2 kids that I can only attribute to a wiggle, a giggle, and the realization that she was out of my league so I might as well be happy with her as a friend. 26 years marriage later, I can't imagine life without her. -Me 10/7/09

ImageImage

Na
Nauta
Posts: 16
Joined: Sat Nov 09, 2013 4:32 pm
Platform: Mac + Linux

Sun Nov 16, 2014 5:35 pm Post

Thanks Jaysen and Xiamenesa!
Knowing that that's normal, I have no problem looking inside the folder and clicking on .scrivx. I have asked because I thought it was a problem with my Ubuntu installation. I knew that in Mac all the apps are packages, but I didn't suppose that this package-format had not been implemented in Linux and therefore I hoped the same response by clicking on the scrivener's file.

Gr
Graybyrd
Posts: 182
Joined: Tue Apr 29, 2008 5:39 am
Platform: Mac, Win + Linux
Location: Whidbey Island, WA
Contact:

Mon Nov 17, 2014 12:07 am Post

If I may jump in and add a word of caution: I was one of those happy Mac users. Since the Mac package file doesn't readily expose its contents, there was never the opportunity to interfere with its contents. HOWEVER this is a common source of trouble for Win/Linux users, who see that neat .scriv project folder and get curious about all that other stuff in the folder besides the .scrivx file. Resist any temptation to add/alter/revise any of those files. They're all of them, support & content for your Scriv project. Leave 'em RIP [rest in peace] :mrgreen: .
On my honor, I will do my best not to do anything unlawful, infringing, disruptive, harmful, threatening, abusive, tortious, defamatory, libelous, lewd, profane, obscene, hateful or otherwise objectionable. Pinky Promise. :mrgreen:

Na
Nauta
Posts: 16
Joined: Sat Nov 09, 2013 4:32 pm
Platform: Mac + Linux

Mon Nov 17, 2014 9:46 am Post

Thanks for your tremendous admonition... I'll retain my dangerous inquiring about these files...