Tiny Core Linux

Tiny Core Extensions => TCE News => Topic started by: coreplayer2 on April 18, 2015, 10:21:44 AM

Title: SpaceFM
Post by: coreplayer2 on April 18, 2015, 10:21:44 AM
On the notion of more is better.. :p 

I've been compiling and testing SpaceFM, seems to meet my requirements quite well


(https://db.tt/1eH2kJLI)
tabbed gui
user has standard window
root has red window
Title: Re: SpaceFM
Post by: coreplayer2 on April 24, 2015, 06:43:05 PM
With the help of the New Online Extension Browser I found SpaceFM had at onetime been submitted for tc-4.x by aus9.  since the maintainer hasn't been around for a while and there have been many updates, ie: v0.8.6 to v1.0.0  also tc-4.x to tc-6.x  I'll just go ahead and update the extension..

Spacefm for those whom have never used it is a highly customizable, tabbed, multi-pane'd  file manager.  This latest version (v1.0 released April 13th 2015) built with gtk2,  udevil and fakeroot.  is compatible with gtk3 however I just haven't gotten around to compiling with gtk3 yet

see more here http://ignorantguru.github.io/spacefm/ (http://ignorantguru.github.io/spacefm/)

extensions being updated for tc-6.x asap:
spacefm
spacefm_locale

and new deps added:
udevil
udevil_locale
fakeroot
fakeroot_locale
fakeroot_man



Title: Re: SpaceFM
Post by: coreplayer2 on April 29, 2015, 01:51:56 PM
spacefm.tcz has been updated and submitted for the tc-6.x  x86

spacefm.tcz

also optional extensions:
spacefm-doc.tcz
spacefm-locale.tcz

fakeroot.tcz
fakeroot-doc.tcz
fakeroot-locale.tcz

lsof.tcz

and lastly
udevil.tcz ***

***there is a delay on "udevil" optional extension needed for auto-mounting of usb drives, cd/dvd's, etc etc.  udevil auto-mounts with ease however I think this program was written for other mainstream distro's since udevil auto-mounts to the fs label directories instead of sdxx as per fstab.  Still working a resolution, may even need a little help with that.

Title: Re: SpaceFM
Post by: gordon64 on August 02, 2015, 04:54:49 PM
Hi

are you planning on submitting a x86_64 TCZ?
 :)
Title: Re: SpaceFM
Post by: coreplayer2 on December 08, 2015, 09:36:39 AM
spacefm.tcz "File Manager" extensions have been updated to latest version (1.0.4) and submitted for the tc-6.x  x86 repo.

spacefm.tcz
spacefm-doc.tcz
spacefm-locale.tcz

My favorite file manager
(https://db.tt/U6AdrYxG)
Title: Re: SpaceFM
Post by: coreplayer2 on December 28, 2015, 09:40:59 PM
Latest SpaceFM v1.04 now available in the repo's


Sent from my iPad using Tapatalk HD
Title: Re: SpaceFM
Post by: emninger on January 01, 2016, 10:50:57 PM
Hi coreplayer. It's nice to have spacefm here. I tried it out, but some things do not work as expected, may be i'm missing something.

Most noticeable: spacefm seems to be unable to display icons for a certain type of files like for example .Xdefaults or .Xresources or shell scripts with *.sh ending. I tried with several icon sets and i even tried with the xfe sets (gnome-blue), which in xfe displays an icon for that kind of file.

When i do "spacefm --desktop-pref" i get the following error msg:
Code: [Select]
/home/tc/.gtkrc-2.0:17: error: unexpected character '/', expected string constant
(spacefm:15839): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
but the gui window with the spacefm desktop settings then opens correctly. Is murrine a dependency of spacefm?

Any idea in regard?
Title: Re: SpaceFM
Post by: Rich on January 01, 2016, 10:59:03 PM
Hi emninger
Maybe you need  gtk-engine-murrine.tcz
Title: Re: SpaceFM
Post by: emninger on January 01, 2016, 11:16:20 PM
Hi emninger
Maybe you need  gtk-engine-murrine.tcz

I installed it and indeed the murrine related error msg disappeared. If spacefm presumes the presence of murrine shouldn't it be installed automatically as a dependency?

But for the rest nothing changed.
Title: Re: SpaceFM
Post by: Juanito on January 02, 2016, 12:32:01 AM
I believe that in most cases an extension should have the minimum dependencies required to function, but the info file should mention which additional dependencies can be used for added functionality.

I would suspect that you need to edit an ini file somewhere to tell gtk to use the murrine theme and appropriate icon package - what does google say?
Title: Re: SpaceFM
Post by: emninger on January 02, 2016, 01:19:48 AM
Hi Juanito.

I have set in $HOME/.gtkrc-2.0 the correct icon set, and it's used, so far, spacefm obviously respects the settings there (it also changes when i change the icon settings there). But it does not work for some strange reason for the file type(s) i mentioned above.

This is my gtkrc-2.0 file:
Code: [Select]
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
gtk-theme-name="FlatStudioDark"
gtk-icon-theme-name="mate-brave"
gtk-font-name="DejaVu Sans 10"
gtk-cursor-theme-name="SharpDot"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
include /home/tc/.gtkrc-2.0.mine

And .gtkrc-2.0.mine:
Code: [Select]
# ~/.gtkrc-2.0.mine - GTK+ theme, icon and font configuration.
#
# System files   : /usr/share/{themes,icons,fonts}
# Personal files : ~/.icons and ~/.fonts
#
include $HOME/.themes
include $HOME/.icons
include $HOME/.fonts
include $HOME/.sounds

I'm not so linux knowledged, so i don't know wether or not the gtk related error msgs might be in some way related to the icons display problem.
Title: Re: SpaceFM
Post by: coreplayer2 on January 02, 2016, 01:25:49 AM
hello emninger

I did a little research and found that murrine is not related to spacef and no matter what I do there are no errors when loading spacefm from the terminal.    There is a gtk 3.0 version but that is even more sensitive to gtk config settings.   However murrine is a gtk 2.0 desktop theme so is more likely used for Openbox or some other application you might have installed.  As in all gtk themes you first install the theme then start the application with that theme.   I'd look at other gtk application config files for the answer to why murrine is being used.

To try out various themes you may install some them engines and use this terminal command 
Code: [Select]
Exec=env GTK2_RC_FILES=/usr/local/share/themes/ClearLooks/gtk-2.0/gtkrc spacefm


I'm still looking for the answer to the few missing file type icons, but is also likely to be a gtk 2.0 config issue.   Will ask

Title: Re: SpaceFM
Post by: emninger on January 02, 2016, 02:34:29 AM
hello emninger

I did a little research and found that murrine is not related to spacef and no matter what I do there are no errors when loading spacefm from the terminal.    There is a gtk 3.0 version but that is even more sensitive to gtk config settings.   However murrine is a gtk 2.0 desktop theme so is more likely used for Openbox or some other application you might have installed.  As in all gtk themes you first install the theme then start the application with that theme.   I'd look at other gtk application config files for the answer to why murrine is being used.

As you see from my .gtkrc-2.0 i use FlatStudioDark as gtk 2 theme. And as for programs i'm aware of, i have claws-mail, libreoffice viewnior using gtk 2. Firefox is gtk2 or gtk 3 related? In any case, i don't see errors in them. And also spacefm seems to work flawlessly without murrine (but, installing it made disappear that error msg.)

Wherefrom the other
Code: [Select]
/home/tc/.gtkrc-2.0:17: error: unexpected character '/', expected string constant is coming i don't know.

To try out various themes you may install some them engines and use this terminal command 
Code: [Select]
Exec=env GTK2_RC_FILES=/usr/local/share/themes/ClearLooks/gtk-2.0/gtkrc spacefm


I'm still looking for the answer to the few missing file type icons, but is also likely to be a gtk 2.0 config issue.   Will ask

Spacefm respects the settings in .gtkrc-2.0. But, as far as i understand, murrine is not really a theme but an engine, isn't it? Even with Clearlooks (using the command you gave me!) i still have the problem with the missing file types icon. As far as i understand in this moment, spacefm either displays a generic file icon for unspecified files or thumbnails for pic files IF the thumbnail option in the settings is activated. Otherwise no icons for pic files as well. But any kind of specific file, also office or word docs as well as scripts and otherwise executables, do not have any icon.

    [EDIT]: Fixed code tag.  Rich
Title: Re: SpaceFM
Post by: Rich on January 02, 2016, 07:30:56 AM
Hi emninger
Code: [Select]
/home/tc/.gtkrc-2.0:17: error: unexpected character '/', expected string constant That indicates the error is on line 17 which reads:
Code: [Select]
include /home/tc/.gtkrc-2.0.mineIs it possible it should be:
Code: [Select]
include "/home/tc/.gtkrc-2.0.mine"
Title: Re: SpaceFM
Post by: coreplayer2 on January 02, 2016, 09:20:19 AM
Quote

As you see from my .gtkrc-2.0 i use FlatStudioDark as gtk 2 theme. And as for programs i'm aware of, i have claws-mail, libreoffice viewnior using gtk 2. Firefox is gtk2 or gtk 3 related? In any case, i don't see errors in them. And also spacefm seems to work flawlessly without murrine (but, installing it made disappear that error msg.)
murrine is not a dependency of spacefm.  I believe Raleigh is listed as the default theme /.gtkrc-2.0:gtk-theme-name="Raleigh"   murrine is not listed on my any of my systems and I can not duplicate.  I don't get errors, sorry.   later today I'll grep the source code to verify
Why not grep for in on you system it to see where murrine is being referenced ; 
Code: [Select]
grep -r 'murrine' * try in your ~/ dir first


Quote
Where from the other
Code: [Select]
/home/tc/.gtkrc-2.0:17: error: unexpected character '/', expected string constant is coming i don't know.
Code: [Select]
spacefm --desktop-pref works fine for me,  perhaps a custom config??


Quote
Spacefm respects the settings in .gtkrc-2.0. But, as far as i understand, murrine is not really a theme but an engine, isn't it?
theme, engine are the same thing right?
Title: Re: SpaceFM
Post by: coreplayer2 on January 02, 2016, 11:07:35 AM
You'll find that best performance is achieved by leaving the theme field blank

I believe the missing icons on certain files is a separate issue and is at worst only cosmetic. I will try to resolve the issue



Sent from my iPhone using Tapatalk
Title: Re: SpaceFM
Post by: emninger on January 02, 2016, 11:25:41 AM
Hi emninger
Code: [Select]
/home/tc/.gtkrc-2.0:17: error: unexpected character '/', expected string constant That indicates the error is on line 17 which reads:
Code: [Select]
include /home/tc/.gtkrc-2.0.mineIs it possible it should be:
Code: [Select]
include "/home/tc/.gtkrc-2.0.mine"

Hi Rich!

Excellent pointer! I changed as you proposed but now, i get this error:
Code: [Select]
/home/tc/.gtkrc-2.0.mine:6: error: scanner: digit is beyond radix
Any idea? (I'm totally clueless ;) )
Title: Re: SpaceFM
Post by: Rich on January 02, 2016, 01:12:57 PM
Hi emninger
Code: [Select]
/home/tc/.gtkrc-2.0.mine:6: error: scanner: digit is beyond radixI'm guessing it doesn't like the dollar sign, plus it probably also needs the quotation marks, try:
Code: [Select]
# ~/.gtkrc-2.0.mine - GTK+ theme, icon and font configuration.
#
# System files   : /usr/share/{themes,icons,fonts}
# Personal files : ~/.icons and ~/.fonts
#
include "~/.themes"
include "~/.icons"
include "~/.fonts"
include "~/.sounds"
Title: Re: SpaceFM
Post by: emninger on January 02, 2016, 01:26:59 PM
You'll find that best performance is achieved by leaving the theme field blank

I believe the missing icons on certain files is a separate issue and is at worst only cosmetic. I will try to resolve the issue ...

As for the theme, i'll try that. Btw, may be i found, why murrine-engine is missing: In Arch Linux (https://www.archlinux.org/packages/community/i686/gtk-engine-murrine/) i found, that
Code: [Select]
    mate-themes
    numix-themes
    deepin-gtk-theme (optional)
depend on murrine-engine.

And i had set mate-barve as icon theme.

For the icon problem, i agree that this is very likely a separate problem. But it's not cosmetic ... In some way spacefm does not recognize file types: May there should be settings for the mime types somewhere (i recall something like mime-types.lst or similar in ~ in debian)?
Title: Re: SpaceFM
Post by: emninger on January 02, 2016, 01:42:03 PM
Hi emninger
Code: [Select]
/home/tc/.gtkrc-2.0.mine:6: error: scanner: digit is beyond radixI'm guessing it doesn't like the dollar sign, plus it probably also needs the quotation marks, try:
Code: [Select]
# ~/.gtkrc-2.0.mine - GTK+ theme, icon and font configuration.
#
# System files   : /usr/share/{themes,icons,fonts}
# Personal files : ~/.icons and ~/.fonts
#
include "~/.themes"
include "~/.icons"
include "~/.fonts"
include "~/.sounds"

You were perfectly right; only a small correction: gtk 2 does not like the tilde char as well. I had to use the directory:
Code: [Select]
include "/home/tc/.themes" etc. Thanks a lot!
Title: Re: SpaceFM
Post by: Rich on January 02, 2016, 01:51:04 PM
Hi emninger
You were perfectly right; only a small correction: gtk 2 does not like the tilde char as well. ...

Well, I was guessing, which is not known for its accuracy. :)
Title: Re: SpaceFM
Post by: emninger on January 02, 2016, 02:28:00 PM
Hi coreplayer2!

I tried with pcmanfm; since it's a "cousin" of spacefm, thought it might be helpful to know if there the icon problem happens as well. But it does not: pcmanfm displays correctly the specific file types. But it's not a problem of the icon-theme. pcmanfm uses by default Nuove-XT (lxde-icon-theme.tcz). I left that and tried with spacefm, but it did not change anything.
Title: Re: SpaceFM
Post by: coreplayer2 on January 02, 2016, 03:14:40 PM
Hi emninger

I'm glad you found the culprit for your theme issue.  However I wouldn't use any theme even on a super computer, there will always be a performance hit. 



As for the icon issue...  I'm sure it's merely cosmetic, just my point of view and I've been using SpaceFM for a year or more on TC6 and earlier versions.  Whether a specific file type has an icon assigned to it or not, doesn't appear to effect any function afaik.  I mean if you assign a program to open script file once,  from then on that program will always open a .sh file


Meanwhile, check this out..   I opened my road warrior machine and found all the files had their respective icons assigned.
(https://db.tt/RJiCPcke)
(click on the picture to enlarge)

Interesting huh..?

Title: Re: SpaceFM
Post by: emninger on January 02, 2016, 10:28:57 PM
... I'm glad you found the culprit for your theme issue.  However I wouldn't use any theme even on a super computer, there will always be a performance hit.

I understand your point, but personally i do not share it: I find a dark theme more eye friendly and that's an essential point - for me ;)

As for the icon issue...  I'm sure it's merely cosmetic, just my point of view and I've been using SpaceFM for a year or more on TC6 and earlier versions.  Whether a specific file type has an icon assigned to it or not, doesn't appear to effect any function afaik.  I mean if you assign a program to open script file once,  from then on that program will always open a .sh file

In  this sense, sure, it's only cosmetic. But i meant, the appearance is also an aspect of functionality: with a correct presentation of the file types already at the first glance you have an overview what's there in a directory.

Meanwhile, check this out..   I opened my road warrior machine and found all the files had their respective icons assigned.
(https://db.tt/RJiCPcke)
(click on the picture to enlarge)

Interesting huh..?

Yes. Tells me that's not an internal problem of spacefm but of the environment. Do you think, it might/could have to do with something like a - missing - database of mimetypes?
Title: Re: SpaceFM
Post by: coreplayer2 on January 03, 2016, 07:22:43 AM

Yes. Tells me that's not an internal problem of spacefm but of the environment. Do you think, it might/could have to do with something like a - missing - database of mimetypes?
Especially when I boot without persistent  home, with base and norestore  boot codes then loading up space fm the icon association reverts to default.
Thereafter booting normally with home persistence I consistently find icon association is restored as shown in the screenshot below

Still trying to resolve this...



Sent from my iPhone using Tapatalk
Title: Re: SpaceFM
Post by: emninger on January 03, 2016, 08:34:03 AM
Thanks for your effort. I googled and searched the arch wiki but i did not really find something significant. I arch wiki they mentioned thumbnailer but i'm not sure to which extent. I would really like to use spacefm (may be also its desktop feature). As a pure filemanager application in an essential environment i think xfe would be more efficient and probably also lighter (?).

Btw, i'm not so tinycore familiar, so - with this netbook - i boot with /home /local &  /opt in the bootcodes (= persistent i presume; makes my life easier ;) ).

PS. I forgot: After i installed pcmanfm (to check how it deals with the file type icons) i saw it customizes (changes) ~/.gtkrc-2.0 to its own needs automatically. But also with this settings the problem in spacefm rests.

Title: Re: SpaceFM
Post by: emninger on January 03, 2016, 08:48:19 AM
Hi emninger
You were perfectly right; only a small correction: gtk 2 does not like the tilde char as well. ...

Well, I was guessing, which is not known for its accuracy. :)

Hi Rich.

To close this specific issue, after a test installation of pcmanfm i saw it configures ~/.gtkrc-2.0 to its own needs. And among this, it changed the last line to:
Code: [Select]
include .gtkrc-2.0.mineThis works as well as what you proposed:
Code: [Select]
include "/home/tc/.gtkrc-2.0.mine"
Probably the rule is like this: If you're pointing to an entire directory you need the quotes, if you point  to a file you only need the file name.
Title: Re: SpaceFM
Post by: coreplayer2 on January 03, 2016, 10:10:05 AM
AIUI "gtkrc-2.0.mine" is the file a user may create to place custom configurations




Sent from my iPhone using Tapatalk
Title: Re: SpaceFM
Post by: coreplayer2 on January 06, 2016, 05:46:33 AM
Ok, after some digging I found that spacefm uses  "shared-mime-info" dependency to associate applications, icons etc etc with file types.   This assumes you have an icon theme installed like gnome-icon-theme.  Why the mime database is not being updated when an icon theme is installed I do not know as yet, however spacefm is so customizable that I found we are not limited to just one method when resolving a missing icon for certain file types issue.

The easiest method I found is simply to create a file " application-x-shellscript.xml " (shell script example) in /home/tc/.local/share/mime/packages with the following contents
Code: [Select]
<?xml version='1.0' encoding='utf-8'?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type='application/x-shellscript'>
        <comment>Shell Script file</comment>
        <comment xml:lang="en">Shell Script file</comment>
        <icon name="shellscript"/>
</mime-type>
</mime-info>
then run " update-mime-database ~/.local/share/mime " and/or restart spacefm

You may create an xml file for each file type you wish to add or change within the database, assuming you have an icon theme installed then adjust the name and contents of the file to suite and run update mime database again

good luck

Title: Re: SpaceFM
Post by: coreplayer2 on January 07, 2016, 03:17:01 PM
(https://db.tt/I7VzoRjd)

I think we have a solution to the missing icons issue..   

I've made considerable changes to the startup script which appears to have resolved issues with the "shared-mime-info dependency"
In the process have also added support for various users set by boot code and left options available to add custom mime associations.

Am testing on tc6.x and tc-7, however If anyone would like to help test the extension please send me a pm, because it's hard to test on only a couple of systems