Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
03-01-2014, 08:06 PM
|
#1
|
Member
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 120
Rep:
|
Change default directory for 'open' and 'save' in KWrite?
I've done a good deal of searching on-line and haven't found an answer to this, so I'm guessing it's either so blindingly obvious (and I'm blinded) that it doesn't need explaining, or it's so arcane that nobody has asked it yet.
I use KWrite as a scratch-pad fairly often, and when I open or save a file the program initially defaults to my home Documents directory (~/Documents) until I tell it otherwise. That's not the directory I ever use, and although it's not a huge undertaking to move to the desired directory, it would be nice to have the computer do that for me. (Why we invented computers, no? To do stuff for us?)
Is there any way to either (a) set a different default directory, or (b) change the program's behaviour to always open the last-used directory the first time after opening the program?
I'm using KWrite in Kubuntu 12.04.
|
|
|
03-01-2014, 09:44 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,737
|
Settings-->Configure Editor-->Open/Save-->Advanced-->Prefix.
Entering the desired directory in there seems to work. I tested by entering "~/Documents" (which exists in my system), saved the change, and, upon clicking "Save" on a new document, Kwrite pointed right at ~/Documents. I exited the program, restarted it, and clicked "Open," and the "open" dialog pointed to ~/Documents.
|
|
|
03-01-2014, 09:59 PM
|
#3
|
Member
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 120
Original Poster
Rep:
|
I may not have been clear: the ~/Documents directory is the built-in default that I want to over-write.
The place you entered "~/Documents" (Settings-->Configure Editor-->Open/Save-->Advanced-->Prefix) is a field that defines the prefix for back-up documents. I went there and added "/datalib/programming" (as I mostly use KWrite as a scratch-pad when writing scripts), closed KWrite then re-opened it, and clicked the "open file" icon. It still points initially to ~/Documents.
What I'm looking for is some way to have it open initially to my "/datalib/programming" directory.
|
|
|
03-01-2014, 10:45 PM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,737
|
"Documents" was not my default in Kwrite, but I did only a quick test.
As for "/datalib/programming," did you try the full path (/[path-to]/datalib/programming)?
|
|
|
03-01-2014, 10:52 PM
|
#5
|
Member
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 120
Original Poster
Rep:
|
Yes, /datalib/programming is the full path.
If ~/Documents isn't the default Open/Save directory on your system, had you earlier set it to something different? Or did your flavor of Linux apply a different default directory?
|
|
|
03-02-2014, 09:05 PM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,737
|
I tested on Mageia, and I thought the default was the home directory, but looking at again I think I was just wrong. If I remember, tomorrow I will take a longer look at it.
My apologies for wasting your time.
|
|
|
03-03-2014, 02:26 PM
|
#7
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,737
|
I think I found something.
Again, this is on Mageia 4, KDE 4.11.4. The Document Path is an overall KDE setting, not a Kwrite setting:
On the KDE menu, go to Computer-->System Settings-->Account Details-->Paths. That's where you can set the default path for documents, as well as for type of files.
I also managed to get to it under Konqueror on E17 (my normal file manager on that computer), but was unable to recreate how I did it, as it was buried deep under Go-->Applications--etc.
|
|
|
03-04-2014, 10:09 AM
|
#8
|
Member
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 120
Original Poster
Rep:
|
Bingo! That did it -- Thank you!
|
|
|
03-04-2014, 09:13 PM
|
#9
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,737
|
You're welcome. It was fun tracking it down--once I had tracked it down!
|
|
|
03-04-2014, 09:15 PM
|
#10
|
Member
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 120
Original Poster
Rep:
|
H1! I know what you mean. Troubleshooting is frustrating when I'm doing it, but once I find the fix, the gratification outweighs all that gnashing of teeth.
|
|
|
All times are GMT -5. The time now is 01:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|