Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: xpdf's default directory, hoow to change default open directory< Next Oldest | Next Newest >
lovdsl Offline





Group: Members
Posts: 359
Joined: Feb. 2006
Posted: April 12 2006,01:20 QUOTE

When you open xpdf and click open the dialog box defaults to home/dsl..I was wondering if this can be changed to a different directory ie /home/dsl/pdf/...I looked around but only found the exec, lang files and the xpdfrc that is in /home/dsl..not sure what to add if this is the place..it currently has only what looks like a printer notation. thanks for any..
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 12 2006,01:45 QUOTE

A lot of X applications default to the current directory for their file selectors, so one way to do this is to start xpdf with the command
Code Sample
cd /home/dsl/pdf && xpdf

You could make this an alias if you want to do this every time:
Code Sample
alias xpdf='cd /home/dsl/pdf && xpdf'

I can't recall if i've ever made an alias with "&&", so i'm not certain it would work.  Another option that will work is to create a little script named xpdf and put it in front of your PATH
Code Sample
#!/bin/sh
cd /home/dsl/pdf/
exec /path/to/real/xpdf "$@"


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
lovdsl Offline





Group: Members
Posts: 359
Joined: Feb. 2006
Posted: April 12 2006,02:25 QUOTE

thanks will try those
Hmm..maby it is easier to create a shortcut to the directory?..so that when I click an icon the directory opens?.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 12 2006,04:32 QUOTE

That still wouldn't change where YOU are...it would only open a new shell in that directory.  In order for this to work you have to start xpdf from the same shell in which you changed directories.  You can make an icon do this, but as with the alias I'm not sure if multiple commands can be run from a single icon click.  I'm going back into DSL shortly...i'll test that out while i'm there.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 12 2006,14:59 QUOTE

If you are using the standard DSL icons, it is a simple task.  
1) Right-click on the xpdf icon and select "Properties".
2) Change the command line to look like this
Code Sample
Command: cd /home/dsl/pdf && xpdf

3) Click "Save".

The same can be done in the fluxbox menu.
1) Open .fluxbox/menu in your favorite editor.
2) Find the "PDF Viewer" line and make it look like this
Code Sample
[exec] (PDF Viewer) {cd /home/dsl/pdf && /usr/bin/xpdf}

3) Save


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
8 replies since April 12 2006,01:20 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: xpdf's default directory

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code