Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 19 Nov 2018, 05:28
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How can I set the default PDF reader in Slacko 570? [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
Mike Walsh


Joined: 28 Jun 2014
Posts: 4380
Location: King's Lynn, UK.

PostPosted: Mon 15 Jan 2018, 20:27    Post subject:  How can I set the default PDF reader in Slacko 570? [SOLVED]
Subject description: Later Pups have PDF category in 'Default Applications'; Slacko doesn't...
 

Evening, all.

I know that for setting default apps to open for specific functions, we normally use Menu->Setup->Default Applications Chooser.

I want to set Adobe Reader 9 for Linux as the default PDF reader. In later Pups (like Tahrpup, Xenial, the later Slackos, to name but a few) the DAC has a specific category for the default PDF reader; 570, however, doesn't.

Is there a way to set the default application for PDFs in Slacko? Or, failing that, is there an updated version of the DAC that can be installed, which has this particular function?

570 is using version 0.8.6 of the DAC, which I notice is rather older than what later Pups use. Any suggestions or info would, as always, be very much appreciated; Adobe Reader itself doesn't appear to have a means to set this.....or if it does, I'm hanged if I can find it!


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------


Last edited by Mike Walsh on Mon 15 Jan 2018, 21:04; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4380
Location: King's Lynn, UK.

PostPosted: Mon 15 Jan 2018, 20:59    Post subject:  

Well, I must be going daft!

Thanks to a timely reminder from Semme (who informs me he's in 'observation mode' at the moment, BTW!), I've remembered that you can always do this sort of thing by right-clicking on any given file, and choosing 'Set run action'.....then dropping your app's executable into the box that comes up.

I'd forget my head if it wasn't bolted on..! Rolling Eyes

I'll mark this as 'Solved'.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
greengeek


Joined: 20 Jul 2010
Posts: 5290
Location: Republic of Novo Zelande

PostPosted: Thu 18 Jan 2018, 05:38    Post subject:  

If Slacko does not have a default setting for opening pdfs how can I read pdfs just by clicking on them? There must be a default chooser somewhere surely - or is this set by a "mime type" or something?

EDIT : Aahhh - found it. Seems that you can modify the content of the file /root/Choices/MIME-types/application_pdf

See http://puppylinux.org/wikka/AssociateFiles for more detail (although my puppy does not seem to have the Choices directory where that page says it should be...)

Code:
# cat /root/Choices/MIME-types/application_pdf
#! /bin/sh
exec epdfview "$1"
#
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1679
Location: Japan

PostPosted: Thu 18 Jan 2018, 05:58    Post subject:  

greengeek wrote:
although my puppy does not seem to have the Choices directory where that page says it should be...]
You obviously found it where the page said it should be, didn't you?
puppylinux.org wrote:
~/Choices/MIME-types/[MIME-type]
You wrote:
/root/Choices/MIME-types/application_pdf
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5290
Location: Republic of Novo Zelande

PostPosted: Thu 18 Jan 2018, 13:12    Post subject:  

MochiMoppel wrote:
You obviously found it where the page said it should be, didn't you?
Actually, yes, it does seem so. However in reality, no i did not - simply because I misread the page, then proceeded to find Choices with my usual method - stumbling around in the dark until I found it. Rolling Eyes

In my defence I would say this: in the past I have seen that there is a "doubling up" of some of the ROX filer files in the sense that the "old" standard was for some of them to be found in /root/Choices but the "new" standard is for them to be found in /root/.config. (go ahead - slay me for my inaccurate terminologies, non-pedantic methodologies and undisciplined stumbling Twisted Evil )

I seem to recall that "globicons" is one such file that has definitely caused me problems in this regard. (and I seem to have a memory of finding Choices in more than one place on some occasions - maybe a malformed pet?? Who knows?)

Anyhow, when I first scanned that page I thought I read:
"~/.config/rox.sourceforge.net/MIME-types/[MIME-type]
~/Choices/MIME-types/[MIME-type]"


which made me think I should see Choices within the rox.sourceforge.net directory.

See how easy it is for me to become confused? A little bit of speed reading, a little bit of optical inaccuracy, a smidgin of old age and a penchant for going off half cocked and the result is mayhem Embarassed

However, the main thing is at least I found Choices in the end Twisted Evil

EDIT : At least now I understand what the tilde ~ means. I thought it meant "continued from previous line". Seems not.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1679
Location: Japan

PostPosted: Fri 19 Jan 2018, 04:38    Post subject:  

greengeek wrote:
In my defence I would say this: in the past I have seen that there is a "doubling up" of some of the ROX filer files in the sense that the "old" standard was for some of them to be found in /root/Choices but the "new" standard is for them to be found in /root/.config. (go ahead - slay me for my inaccurate terminologies, non-pedantic methodologies and undisciplined stumbling Twisted Evil )
I wouldn't dare to go ahead with the devil on my back Laughing
Only this - risking to confuse you even further: ROX looks for MIME run action scripts not in 2 but in 3 locations, and /root/Choices is the last it would check and the least relevant ...

You are right with your observation that while the "old" standard used /root/Choices the "new" standard is using /root/.config. Unfortunately old habits never die and Puppy devs still use directory /root/Choices/MIME-types though IMHO they shouldn't.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0460s ][ Queries: 14 (0.0086s) ][ GZIP on ]