Tiny Core Linux

Tiny Core Extensions => TCE News => Topic started by: aus9 on February 26, 2013, 07:37:44 PM

Title: SpaceFM a file manager
Post by: aus9 on February 26, 2013, 07:37:44 PM
a fork of a fork of pcmanfm
only I think its better.

I have not resolved automatic umounting of media.

(http://oi53.tinypic.com/2edb8s4.jpg)

give it a shot?
Title: Re: SpaceFM a file manager
Post by: Rich on February 26, 2013, 09:24:51 PM
Hi aus9
Quote
I have not resolved automatic umounting of media.
What do you mean by  automatic unmounting?
Title: Re: SpaceFM a file manager
Post by: Lee on February 26, 2013, 09:34:01 PM
Nice.

Haven't fully tested it yet but liking it so far.

I didn't get an icon when I installed it... could just be something funky in my set up - I didn't try it on a "base norestore" clean system yet.

Thanks.
Title: Re: SpaceFM a file manager
Post by: tinypoodle on February 26, 2013, 10:32:37 PM
Rather impressive dependency tree for a file manager, particularly the udisks part...   :o
Title: Re: SpaceFM a file manager
Post by: aus9 on February 27, 2013, 03:34:23 AM
Rich
on some distros, pulling out the usb stick "auto" unmounts and pressing the eject button on optical media drive...ditto
Meaning the entry in the left hand pane disappears.

tinypoddle
I think like a village idiot, if you are suggesting dependencies are too big a download pls say so or whatever you are alluding to pls
udisks (or udevil) is the main dependency on some other distros for automounting
Without the depends of the depends the list looks like
Quote
coreutils.tcz           shared-mime-info.tcz       hicolor-icon-theme.tcz
gtk2.tcz                libstartup-notification.tcz   udisks.tcz   bash.tcz
dbus.tcz            udev-lib.tcz                          libattr.tcz

automounting should work for you, I hope. it is marked Testing tho, to cover my botty.

Lee
Can you advise do you mean you can't see an menu entry with icon somewhere?
For me, its under System Tools. I have attached an image if needed

For all, desktop entry is /usr/local/share/applications

cheers and thanks all for testing so far
Title: Re: SpaceFM a file manager
Post by: Lee on February 27, 2013, 04:33:38 AM
I get a menu entry under "Applications" but no icon appears on the wbar.  There are some icons included in the extension but I had to manually ad one to wbar.


I'd agree that the total size of the app, with dependencies, is a bit on the heavy side at 24.44 MB (vs 16.77 for pcmanfm2,  13.11 for emelfm2 and 4.43 for xfe).

It looks like the user interface will take some getting used to, too.  But if its really good it can be worth some baggage and some effort to learn.
Title: Re: SpaceFM a file manager
Post by: aus9 on February 27, 2013, 04:45:16 AM
hmm I never wbar as I use lxde, oops
to get it it looks like I might have to choose a diff icon pathway
I chose
echo 'X-FullPathIcon=/usr/local/share/icons/Faenza/apps/48/SpaceFM.png' in my build script and maybe I should copy that 48 icon size into
/usr/local/share/pixmaps/

I will test later thanks for reporting
Title: Re: SpaceFM a file manager
Post by: Lee on February 27, 2013, 05:28:35 AM
You're welcome.  And thank you for your work on extensions.

I keep wanting to call this one "spacemanfm"!

Title: Re: SpaceFM a file manager
Post by: aus9 on February 27, 2013, 07:44:40 AM
wiki may be strongly worded stating
Quote
The icon should be a 48×48 PNG, and the preferred location for storing icons is /usr/local/share/pixmaps/

but chromium (desktop)  uses X-FullPathIcon=/usr/local/share/icons/hicolor/64x64/apps/chromium-browser.png

and I used X-FullPathIcon=/usr/local/share/icons/Faenza/apps/48/SpaceFM.png

and I have double-checked using mtpaint and it declares its a 48x48 and chromium is 64x64
---wbar displays chromium

hmmm
Title: Re: SpaceFM a file manager
Post by: aus9 on February 27, 2013, 07:57:51 AM
anyone got a wbar icon where the tcz has a mixture of upper and lower case?

and

does the TCZ name need to match the icon name?

SpaceFM uses an icon for spacefm

I have got the menu licked, SpaceFM uses SpaceFM desktop

the specs page is not making it easy for a local village idiot

http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
but it does say
Quote
Case is significant everywhere in the file

but not what that truly means.

maybe I should rename my icons and remaster the tcz?
Title: Re: SpaceFM a file manager
Post by: Rich on February 27, 2013, 09:33:00 AM
Hi aus9
Just so no noobs get the wrong idea by reading this statement:
Quote
on some distros, pulling out the usb stick "auto" unmounts ....
This is not a safe way to remove a USB drive since there could still be a write in progress. Always unmount a drive first.
Once you have confirmation the drive is unmounted AND the light on the drive stops flashing, it is safe to remove.
Title: Re: SpaceFM a file manager
Post by: AmatCoder on February 27, 2013, 10:09:28 AM
anyone got a wbar icon where the tcz has a mixture of upper and lower case?
No, wbar icon filename must be lower case.

does the TCZ name need to match the icon name?
No.
Title: Re: SpaceFM a file manager
Post by: tinypoodle on February 27, 2013, 01:11:47 PM
on some distros, pulling out the usb stick "auto" unmounts
Huh?  :o
Hard to believe, could you name any specific examples?
Quote
and pressing the eject button on optical media drive...ditto
There is an essential difference between filesystems mounted readonly vs. read-write.
Filesystems on optical drives happen to be mounted readonly in majority of cases.
Whenever a filesystem on an optical drive is mounted read-write, it has to be safely umounted
before being ejected as well.
Quote
tinypoddle
I think like a village idiot, if you are suggesting dependencies are too big a download pls say so or whatever you are alluding to pls
I was impressed what dependencies a file manager could pull when looking at the dependency tree,
particularly the subtree of "udisks".
Quote
udisks (or udevil) is the main dependency on some other distros for automounting
Glad core doesn't include most of that stuff...
Title: Re: SpaceFM a file manager
Post by: tinypoodle on February 27, 2013, 02:11:20 PM
Hi aus9
Just so no noobs get the wrong idea by reading this statement:
Quote
on some distros, pulling out the usb stick "auto" unmounts ....
This is not a safe way to remove a USB drive since there could still be a write in progress. Always unmount a drive first.
Once you have confirmation the drive is unmounted, it is safe to remove.
Not necessarily, according to what is discussed here:
http://forum.tinycorelinux.net/index.php/topic,14006.msg78638.html#msg78638
Title: Re: SpaceFM a file manager
Post by: coreplayer2 on February 27, 2013, 02:47:44 PM
   Even a journaled file system will check the system on boot but may not be able to prevent data loss..     Every inadvertent disconnect I've experienced of a mounted USB has always resulted in a filesystem with the dirty bit set, the only fix is a file system check, again maybe too late to prevent data loss. 

Title: Re: SpaceFM a file manager
Post by: Rich on February 27, 2013, 02:59:09 PM
Hi tinypoodle
Absolutely correct, I forgot about that possibility. If the drive lies about having finished writing to the OS then waiting
for the umount command to complete is not sufficient.
Update my previous reply to reflect such.
Title: Re: SpaceFM a file manager
Post by: aus9 on February 27, 2013, 06:06:04 PM
AmatCoder
thanks for the heads up

Lee
I found my error, it was the desktop entry not matching the icon name, silly me. Its morning here  so will do a rebuild and test later.
Once tested I will supply a kind of script to allow you to remaster the tcz until the repository is updated.

tinypoddle
I will send you a pm shortly

to all interested in clean unmounting
I mentioned that I had not resolved that issue. I do know about our /etc/fstab having an impact.

I hope you read my info file on eject and clean unmounting

EDIT
rebuild works will make a temporary remaster script later
image attached
possible tcz fix submitted for approval.

Title: Re: SpaceFM a file manager
Post by: aus9 on February 27, 2013, 08:08:43 PM
ok this is a possible work-a-round only for those users who need a wbar icon and can not wait for the tcz fix to be uploaded.
try at own risk but give feedback if it does not work, it works for me but I did rush it out

download the attachment and then make it executable with
Code: [Select]
chmod +x fix.sh
# and peruse it and if happy run it with
# from where ever you download to
sh fix.sh

to save you downloading it just have a look here it is a version 1
Quote
#!/bin/sh

mkdir /tmp/unpack
cp /etc/sysconfig/tcedir/optional/SpaceFM.tcz /tmp/unpack
tce-load -i squashfs-tools-4.x coreutils

cd /tmp/unpack
unsquashfs *.tcz
rm -rf *.tcz
rm -rf squashfs-root/usr/local/share/applications/SpaceFM.desktop

DESK=squashfs-root/usr/local/share/applications/SpaceFM.desktop

echo '[Desktop Entry]' > $DESK
echo 'Version=1.0' >> $DESK
echo 'Name=SpaceFM' >> $DESK
echo 'Categories=System;FileTools;Utility;Core;GTK;FileManager;' >> $DESK
echo 'Exec=spacefm %F' >> $DESK
echo 'Icon=spacefm' >> $DESK
echo 'StartupNotify=true' >> $DESK
echo 'Type=Application' >> $DESK
echo 'Terminal=false' >> $DESK
echo 'MimeType=inode/directory;inode/mount-point;x-scheme-handler/ssh;x-scheme-handler/smb;x-scheme-handler/nfs;x-scheme-handler/ftp;' >> $DESK
echo 'GenericName=File Manager' >> $DESK
echo 'Comment=Browse the file system' >> $DESK
echo 'X-FullPathIcon=/usr/local/share/icons/Faenza/apps/48/spacefm.png' >> $DESK

mksquashfs squashfs-root/ SpaceFM.tcz
md5sum SpaceFM.tcz > SpaceFM.tcz.md5.txt

/usr/local/bin/cp -f *.tcz* /etc/sysconfig/tcedir/optional/
Title: Re: SpaceFM a file manager
Post by: aus9 on February 28, 2013, 07:59:56 PM
to only those interested in seeing a 8 second movie with a cheap nasty camera,
a good camera person always blames his tools, hand held and image is not super clear

first is left hand pane no usb stick
insert usb stick
pane changes .....like most auto mount type distros
remove usb stick
pane changes

of course I am not recommending anyone try this, so I refuse to name the distro where you could ruin your stick's data

http://www.youtube.com/watch?v=PXZGG9rWMsY&feature=youtu.be

Merely showing for proof of concept so not interested in putting a timer in front of camera etc
Title: Re: SpaceFM a file manager
Post by: aus9 on March 07, 2013, 06:58:20 PM
wbar is fixed IMO

For those testing spacefm, wbar is fixed in the main server update.
wbar now shows search, root and local user spacefms

they all come from the one tcz SpaceFM

(http://oi50.tinypic.com/ifd5ah.jpg)

thanks to gutmensch for his time