i would like to set default File Manager SpaceFM in antix.
pleas help me..
topic title: how to set default File Manager SpaceFM in antix
15 posts
• Page 1 of 1
-
Posts: 1
- Joined: 15 Nov 2012
-
Posts: 137
- Joined: 19 Sep 2012
#2
I'm not absolutely certain what you mean by 'default' (nor do I know what WM your using) but if it's the 'folder' icon on the Toolbar you want to change from RoxFM to SpaceFM = and if your using IceWM - it's comparatively easy.
You should have a file .icewm/toolbar in your home directory; if not, copy it from:
/usr/share/antiX/localisation/en/icewm/toolbar
to:
~/.icewm/toolbar
(you will probably need to be root to do this, you will certainly need to be root to edit it or change its ownership - as root:
chown paraguma ~/.icewm/toolbar
Then it's simple - use your favourite editor to open the file, find the line:
prog"Home Folder" folder rox
and change 'rox' to 'spacefm'
You can even change the title if you want to:
prog"SpaceFM: ~/" folder spacefm
You can organise your toolbar in this file' I enclose a copy of mine which includes an 'often used; menu file + some notes.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# This is a default toolbar definition file for IceWM
# The 'top' copy of this file is in:
# /usr/share/antiX/localisation/en/icewm/toolbar
# But ensure your personal variant is placed in the ~/.icewm directory and that this is the one you edit.
# If called from 'antiX Control Center --> Edit System Monitor' check
# 'Documents' tab to ensure you are editing the ~/.icewm copy (not thru'
# 'top' copy)
### Here is an example of a"quick launch" button (effectively a folder)
menu"MyStuff" /usr/local/share/xsw/tutorial/tux.png {
prog"cherrytree" /usr/share/icons/hicolor/scalable/apps/cherrytree.svg /usr/bin/cherrytree
prog"leafpad" /usr/share/icons/hicolor/scalable/apps/leafpad.svg /usr/bin/leafpad
### Nested menu
menu"FileManagers" folder {
prog"RoxFM" /usr/share/icons/hicolor/48x48/apps/spacefm-48-folder-red.png /usr/bin/rox
prog"SpaceFM" /usr/share/icons/hicolor/48x48/apps/spacefm-48-folder-blue.png /usr/bin/spacefm
}
}
# __________________________________________________________________
# NB: The FIRST Button on the Toolbar is for the QuickLaunch (the menu
#"MyStuff") & this has 2 sets of braces {}. the first opens at:
# menu"MyStuff" /usr/local/share/xsw/tutorial/tux.png {
#and closes at:
# prog"SpaceFM" /usr/share/icons/hicolor/48x48/apps/spacefm-48-folder-blue.png /usr/bin/spacefm
# }
# }
# The second set opens at:
# ### Nested menu
# menu"FileManagers" folder {
#and closes at:
# prog"SpaceFM" /usr/share/icons/hicolor/48x48/apps/spacefm-48-folder-blue.png /usr/bin/spacefm
# }
# }
# __________________________________________________________________
prog"Terminal" xterm roxterm
prog"Browser" /usr/share/icons/gTangish-2.0a1/32x32/apps/internet-web-browser.png /usr/bin/iceweasel
prog"Control Center" /usr/share/icons/gTangish-2.0a1/32x32/categories/preferences-desktop.png antixcc.sh
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
If you're using fluxbox or something other than icewm someone else will have to help you.
You should have a file .icewm/toolbar in your home directory; if not, copy it from:
/usr/share/antiX/localisation/en/icewm/toolbar
to:
~/.icewm/toolbar
(you will probably need to be root to do this, you will certainly need to be root to edit it or change its ownership - as root:
chown paraguma ~/.icewm/toolbar
Then it's simple - use your favourite editor to open the file, find the line:
prog"Home Folder" folder rox
and change 'rox' to 'spacefm'
You can even change the title if you want to:
prog"SpaceFM: ~/" folder spacefm
You can organise your toolbar in this file' I enclose a copy of mine which includes an 'often used; menu file + some notes.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# This is a default toolbar definition file for IceWM
# The 'top' copy of this file is in:
# /usr/share/antiX/localisation/en/icewm/toolbar
# But ensure your personal variant is placed in the ~/.icewm directory and that this is the one you edit.
# If called from 'antiX Control Center --> Edit System Monitor' check
# 'Documents' tab to ensure you are editing the ~/.icewm copy (not thru'
# 'top' copy)
### Here is an example of a"quick launch" button (effectively a folder)
menu"MyStuff" /usr/local/share/xsw/tutorial/tux.png {
prog"cherrytree" /usr/share/icons/hicolor/scalable/apps/cherrytree.svg /usr/bin/cherrytree
prog"leafpad" /usr/share/icons/hicolor/scalable/apps/leafpad.svg /usr/bin/leafpad
### Nested menu
menu"FileManagers" folder {
prog"RoxFM" /usr/share/icons/hicolor/48x48/apps/spacefm-48-folder-red.png /usr/bin/rox
prog"SpaceFM" /usr/share/icons/hicolor/48x48/apps/spacefm-48-folder-blue.png /usr/bin/spacefm
}
}
# __________________________________________________________________
# NB: The FIRST Button on the Toolbar is for the QuickLaunch (the menu
#"MyStuff") & this has 2 sets of braces {}. the first opens at:
# menu"MyStuff" /usr/local/share/xsw/tutorial/tux.png {
#and closes at:
# prog"SpaceFM" /usr/share/icons/hicolor/48x48/apps/spacefm-48-folder-blue.png /usr/bin/spacefm
# }
# }
# The second set opens at:
# ### Nested menu
# menu"FileManagers" folder {
#and closes at:
# prog"SpaceFM" /usr/share/icons/hicolor/48x48/apps/spacefm-48-folder-blue.png /usr/bin/spacefm
# }
# }
# __________________________________________________________________
prog"Terminal" xterm roxterm
prog"Browser" /usr/share/icons/gTangish-2.0a1/32x32/apps/internet-web-browser.png /usr/bin/iceweasel
prog"Control Center" /usr/share/icons/gTangish-2.0a1/32x32/categories/preferences-desktop.png antixcc.sh
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
If you're using fluxbox or something other than icewm someone else will have to help you.
-
Posts: 1,062
- Joined: 20 Jan 2010
#3
For local settings ( your user only ) you need to edit
~/.local/share/applications/mimeapps.list
and withing the file place a line similar to the following
inode/directory=spacefm.desktop;
For global settings (every user) you need to edit
/usr/share/applications/mimeinfo.cache
changing the line above to put spacefm first. So if the line shows
inode/directory=rox-filer.desktop, spacefm.desktop
change it to say
inode/directory=spacefm.desktop, rox-filer.desktop
This will set spacefm as the default, however you will need to edit the icewm/jwm toolbars and the icewm,jwm,fluxbox menus to reflect.
This can be done through the antix control center in the desktop tab
~/.local/share/applications/mimeapps.list
and withing the file place a line similar to the following
inode/directory=spacefm.desktop;
For global settings (every user) you need to edit
/usr/share/applications/mimeinfo.cache
changing the line above to put spacefm first. So if the line shows
inode/directory=rox-filer.desktop, spacefm.desktop
change it to say
inode/directory=spacefm.desktop, rox-filer.desktop
This will set spacefm as the default, however you will need to edit the icewm/jwm toolbars and the icewm,jwm,fluxbox menus to reflect.
This can be done through the antix control center in the desktop tab
- Posts: 137 duncan_mk
- Joined: 19 Sep 2012
#4
Good post Dave! Now I must try to learn something about mimes. One slight problem is that I do not have a
~/.local/share/applications/mimeapps.list
either on in my home folder or, even, on my harddrive - although there is a:
~/local/share/applications/mimeinfo.cache.
Does this file (mimeapps.list) need to be created and the text"inode/directory=spacefm.desktop;" added to it?
Thanks as usual for your help.
dmk
~/.local/share/applications/mimeapps.list
either on in my home folder or, even, on my harddrive - although there is a:
~/local/share/applications/mimeinfo.cache.
Does this file (mimeapps.list) need to be created and the text"inode/directory=spacefm.desktop;" added to it?
Thanks as usual for your help.
dmk
-
Posts: 1,228
- Joined: 15 Jun 2008
#5
The proper way re. MIME types is
Code: Select all
xdg-mime default spacefm.desktop inode/directory
-
Posts: 137
- Joined: 19 Sep 2012
#6
This is all good stuff -
paraguma should look @
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://github.com/IgnorantGuru/spacefm/issues/71"
linktext was:"https://github.com/IgnorantGuru/spacefm/issues/71"
====================================
it explains the difference between default.list (which I have in my .local folder and /mimeapps.list which Dave mentios.
Today I've learned something.
Thanks for the question & all the answers
dmk
paraguma should look @
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://github.com/IgnorantGuru/spacefm/issues/71"
linktext was:"https://github.com/IgnorantGuru/spacefm/issues/71"
====================================
it explains the difference between default.list (which I have in my .local folder and /mimeapps.list which Dave mentios.
Today I've learned something.
Thanks for the question & all the answers
dmk
-
Posts: 609
- Joined: 02 Jun 2008
#7
@duncan_mk in that article the developer of spacefm talks on how the program find file associations. as for the defaults.list you shouldn't dismiss it yet. an example is: for transmission to see and open mkvs with mplayer, it only works via defaults.list and not the mimeapps.list. a general rule in linux is to use what works for you.
-
Posts: 137
- Joined: 19 Sep 2012
#8
Dave
I agree entirely, but then I don't use SpaceFM - default.list fits the bill for me - but if you're setting it as your default browser, you need to know how it works:
quote:
"spacefm >0.7.7 no longer modifies ~/.local/share/applications/defaults.list. If you no longer want to use it, you can delete it".
This may not be entirely true, you may need both, but you will need mimeapps.list.
dmk
I agree entirely, but then I don't use SpaceFM - default.list fits the bill for me - but if you're setting it as your default browser, you need to know how it works:
quote:
"spacefm >0.7.7 no longer modifies ~/.local/share/applications/defaults.list. If you no longer want to use it, you can delete it".
This may not be entirely true, you may need both, but you will need mimeapps.list.
dmk
-
Posts: 1,228
- Joined: 15 Jun 2008
#9
You can only choose 'what works for you' among several options because applications use standards.
The standard for setting MIME type associations and default applications is mimeapps.list and that's the file edited by the default tool for that, xdg-mime.
So if you (generic here) find an application, even a GNOME one (which isn't the case for Transmission), that doesn't parse mimeapps.list to check the default application for some MIME association (even if it checks defaults.list before) then you should open a bug report for it, if you really care to be able to choose the best application for you in the future.
No. You can have that attitude if you like but if everyone did the same you would very soon have no choices at all.dark-D wrote:a general rule in linux is to use what works for you.
You can only choose 'what works for you' among several options because applications use standards.
The standard for setting MIME type associations and default applications is mimeapps.list and that's the file edited by the default tool for that, xdg-mime.
So if you (generic here) find an application, even a GNOME one (which isn't the case for Transmission), that doesn't parse mimeapps.list to check the default application for some MIME association (even if it checks defaults.list before) then you should open a bug report for it, if you really care to be able to choose the best application for you in the future.
-
Posts: 609
- Joined: 02 Jun 2008
#10
i find what you said offensive at my person and preachy. it is not the first time that you did that. i don't have an attitude it's just the way things work in linux. there are five programs to do the same thing and there are five configuration files for a single setting and i can name a dozen. setting the global time has change the third time this year. we have fluxbox, icewm, spacefm, rox, gnome settings, gtk2 and gtk3, qt apps, console apps and so on each with their set of configuration and files. i like the standard there. as for the discussion above. spacefm isn't the default in antix, so to set it you need to change the icewm/fluxbox menu entries, then the auto-generating menu, then mime info, but it's still not the default because other apps like transmission that is a gtk compiled program will look in to defaults.list which by gnome/gtk (ubuntu way) is the default for them. am i sick and tired of submitting bug report and gui optimization advice or contributing to a distribution when the developers do what they want and ignore your bug/suggestion, and when google/apple/gnome or who else does a thing everyone copies it like the parrots they are. if you want to send a bug report fell free to send it. for your information even in antix, suggestions made by me to make it more friendly were ignored and people enter the forum and post endless questions with a thing that should be resolved by my suggestion. but i keep on using it and try to live with it and improve it when i can. in the mean time i have antix set to my perfection because the standard doesn't work and will never will.
-
Posts: 137
- Joined: 19 Sep 2012
#11
What can I say: dark-d I'm sorry sorry to have confused you with Dave BUT:
Jesus H on a bike - I already seem to be in involved in a flamewar on LQ.
AND
Actually, I agree with dark-d. Surely, as long as the information is out there, it doesn't matter what the config files are called: default.list, mimeapps.list or my"oo-er.missis.you.aren't.'alf.saucy.list" (I'm not sure what that does at the moment) as long as the program knows what to look for. My program - Oo-er.Mrs! - will looks toward neither default.list nor mimeapps.list - I haven't decided on the name yet!
dmk
Jesus H on a bike - I already seem to be in involved in a flamewar on LQ.
AND
Actually, I agree with dark-d. Surely, as long as the information is out there, it doesn't matter what the config files are called: default.list, mimeapps.list or my"oo-er.missis.you.aren't.'alf.saucy.list" (I'm not sure what that does at the moment) as long as the program knows what to look for. My program - Oo-er.Mrs! - will looks toward neither default.list nor mimeapps.list - I haven't decided on the name yet!
dmk
-
Posts: 609
- Joined: 02 Jun 2008
#12
i was in a bad mood i had some problems today. i didn't want to offend anyone. i stand by my post regarding linux and problems in it.
-
Posts: 137
- Joined: 19 Sep 2012
#13
I'm not offended and, if you thought I was, I am very sorry. I have certainly had help from you in the past for which I have been grateful.
dmk
dmk
-
Posts: 1,445
- Joined: 09 Feb 2012
#14
if you care to talk further on the subject, I'm curious to hear the details of your tweaks & to find out which part(s) of"the standard" will never work.dark-D wrote:i have antix set to my perfection because the standard doesn't work and will never will
-
Posts: 609
- Joined: 02 Jun 2008
#15
do no take my words out of context, i was referring to the technical standards that don't work, as a reply to secipolla for saying that i have an attitude. if you want my customizations they are in the forum if you look for them, but i never imposed my personal taste to antix. further more i don't want to get in to polemics because they a waste of everyone's time.