LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 09-12-2019, 06:14 AM   #1
forem
LQ Newbie
 
Registered: Feb 2016
Posts: 10

Rep: Reputation: Disabled
In which file is stored DefaultApps settings (liveCD 4MLinux 30.0)?


Hi, can you guys help me please with - where can I find the file in which stored the setting of is:
Default apps players
Default apps browser

The idea is when I boot pc from LiveCD > set it > find the "setting storage file" in / system > copy & backup that file on external hdd.

Then when I boot next time LiveCD I do not have to set it again - just copy with one click this my backuped file (by my bash script.sh) from external hdd back into system / (somewhere where it belong) - and it will be set.

(I do have successfully using this my script.sh with easy quick PCManFM & Chrome & Firefox settings ).


I was going through files in /usr/share/jwm/system.jwmrc & /usr/bin/4mlinuX but I'm just not able to figure it out by myself to which/where file in final it goes .

Thank you for your help.
4m rulez .
 
Old 09-12-2019, 03:59 PM   #2
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 969

Rep: Reputation: 187Reputation: 187
Menu > Settings > Default Apps

.
 
Old 09-14-2019, 08:23 AM   #3
forem
LQ Newbie
 
Registered: Feb 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi zk1234. Thank you for info.
It's just please that I do know how to set it by clicks going through Menu > just I'm looking for file in system where in which file these setting has been written after it's done set.
So I can save/backup this file (& I do not have to do this clicking 20 times a day - if I start LiveCD at least 5 times a day, which I do ...).
 
Old 09-14-2019, 08:46 AM   #4
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 969

Rep: Reputation: 187Reputation: 187
Unfortunately, such a configuration file does not exist. Instead, there is a script which creates symbolic links. A part of the script looks as follows:
Code:
if [ ! -e /usr/bin/media-player ]; then
   ln -s /usr/bin/gnome-mpv /usr/bin/media-player
 fi
 if [ ! -e /usr/bin/audio-player ]; then
   ln -s /usr/bin/audacious /usr/bin/audio-player
 fi
 if [ ! -e /usr/bin/viewer ]; then
   ln -s /usr/bin/gpicview /usr/bin/viewer
 fi
 if [ ! -e /usr/bin/archiver ]; then
   ln -s /usr/bin/engrampa /usr/bin/archiver
 fi
As you can see, the script defines the set of default applications in 4MLinux by creating symbolic links.
The location of the script: /usr/share/jwm/mime/mime.sh

PS.
Which application would you like to set as the default one ?

.

Last edited by zk1234; 09-14-2019 at 09:09 AM.
 
Old 09-14-2019, 11:22 AM   #5
forem
LQ Newbie
 
Registered: Feb 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks zk1234 for answering, I know you probably must be busy with makin 4MLinux, so sorry for takin' you time.
When I was running liveCD 4MLinux 30.0 for a first time I did install almost everything ,
and I do have Firefox, Chromium, Opera, SeaMonkey, Thunderbird, also VLC, SMPlayer.

I did run 'DefaultApps' a few times before (to test it), so I guess there will be all of those symbolic links,
but to set as the default one I would like to:
Browser Firefox
Video VLC
Audio Aaudacious
Archiver as it is default out-of-box
Viewer as it is default out-of-box


Where is the symbolic links please and what is its name? Are those files?:
/usr/bin/archiver
/usr/bin/audio-player
/usr/bin/browser
/usr/bin/media-player
/usr/bin/viewer

Can I copy/backup it 'out of system' .... and later nex liveCD put it back where it belongs please?
 
Old 09-14-2019, 11:43 AM   #6
forem
LQ Newbie
 
Registered: Feb 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
OKi-doki, I think I did answered it a little in my previous post.
Thanks to zk1234 (before I didn't know its command ) it gave me an idea and I went to do some more homework: find what means ln -s
https://linuxize.com/post/how-to-cre...he-ln-command/

So if it's similar to 'windows shortcust' I will try to copy these out (or .zip it first) ... and then put it back later with next liveCD run.
Thank you - I think it's solved here.

4m rulez
 
Old 09-14-2019, 12:06 PM   #7
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 969

Rep: Reputation: 187Reputation: 187
You're welcome!

The following simple script will do the job for you:
Code:
ln -sf /opt/firefox/firefox /usr/bin/websurf
ln -sf /usr/bin/vlc /usr/bin/media-player
.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] In which file are aliases stored? postcd Linux - General 7 04-16-2016 12:37 PM
LXer: Final 4MLinux and 4MLinux Allinone Edition 12.0 Released with PAE Support LXer Syndicated Linux News 0 05-10-2015 12:56 AM
LiveCd? Which f these is a LiveCd? Tom6 SUSE / openSUSE 7 07-14-2009 04:22 AM
How to send a file-oracle setup which is stored in my windows xp desktop,to a locatio Pak_T Linux - Desktop 0 07-07-2007 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration