rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: mhoney on June 14, 2016, 06:43:13 PM
-
I am running HFS 2.3H Under Linux with Wine and am wondering how I can add icons? I have tried using the add icons from the other options menu, but no matter what I try to add (.gif, .png, .ico) it always says 0 icons added.
On a Windows machine I was able to add a PDF icon by dragging and dropping a pdf file onto hfs and it extracted the icon. Where does it store these icons? I don't mind adding the icons with windows then moving them to Linux.
-
try to place the icon files in the root directory of HFS.exe , as they will still be available, don't forget that with wine hfs run under a virtual machine
-
So if I put these files in the root of hfs, what should they be? .gif, png, ico? Does it matter what I name them?
-
you can add some ico png bmp, but avoid gif
by using to icons masks, you will be able to associate a mask with a user icon numbered over 10000
-
i have always found it easier and better to html code icons:
http://www.w3schools.com/icons/
-
I appreciate your input but none of it even remotely answers my specific questions. Where do imported icons get stored? What do the icons have to be named? What type of file should the icons be?
If this feature of HFS isn't fully implemented or just doesn't work then let me know and I'll quit asking ;)
-
It would be good to exactly know that you are trying to achieve...
I mean, when you talk about "icons", you are referring to:
- Favicons (https://en.wikipedia.org/wiki/Favicon)
- Shortcut icons (file shortcut icon) (https://en.wikipedia.org/wiki/File_shortcut)
- Icons shown in files shared by HFS
If it's the last option, I think HFS "takes" the current icon associated with file types (http://www.sevenforums.com/tutorials/57455-file-extension-icon-change-default-icon.html) from your (http://www.online-tech-tips.com/computer-tips/change-file-icon/)system (http://www.howtogeek.com/howto/12383/change-a-file-types-icon-in-windows-7/). I mean, if you have .zip files associated to WinRAR, when you share files with HFS, it will show a WinRAR icon (an icon like this (http://i.imgur.com/RLcUN3o.png)), but if it's associated to WinZIP, it will show a WinZIP icon (an icon like this (http://i.imgur.com/YurZ2Dr.gif)).
But things get more complicated in case of using Linux (HFS+WINE), since I don't know how WINE handles file association (and his icons). In Windows it's easy to change those icons, but I don't know how to do it in Linux. Anyway, this is a WINE issue, and it doesn't have anything to do directly with HFS (since HFS uses the system icons). Someone correct me if I'm wrong.
About icons associated with a file type on WINE, here (http://askubuntu.com/questions/51325/how-to-associate-all-file-types-within-wine-with-its-corresponding-native-applic) and here (http://askubuntu.com/questions/323437/how-to-prevent-wine-from-adding-file-associations)'s more info.
-
Thanks for the information LeoNeeson. That is very close to what I was looking for. If i can figure out how exactly it works on Windows then I will look elsewhere on how to translate that information into WINE.
-
a continuation of this posted by same user...:
http://www.rejetto.com/forum/bug-reports/icons-don't-survive-hfs-restart/?topicseen
----------------------------------------------------------------
you answered the question on this forum topic with your start post... it works in windows, but doent in linux....
Its hard to say what the root cause is...
each Linux distro is different.. each GUI (if you have one is different)...
so its hard to give help....
lets see:
Don't know if you can bring over the icon with the windows to linux method haven't tested....
the save location on linux will be difference on windows....
memory serves:
(there actual is a hidden folder directly inside HFS, that directory holds the ICO files among other scripts such as the jqurey....)
It been a while and i need to get a re look at the program menu, i think it can open that folder path (as it doen't exist when hfs is not running - which may be why its goen upon restart! -) ........
but the problem realy comes down to: is the linux compabilty layer in wine... that prevent HFS form saveing those files....
-could even be a permsion isue via linux....
-----------------------------------------------------------
Back when i test a way older version of HFS on ubuntu 7 with gnome 2, this feature was working, but i had aces to the icon direct and theming and other "BS" that made linux look(gnome 2 / emerald / qurt 4/ qt 4 / etc open source destroyed becuase of unity and gnome 3.0 ont he ubuntu distro....) and i was sucessfuly able to make a ubuntu gnome 2 work and look like a windwos xp - windwos 7 OS....(but it was linux and other stuff that no longer aviable nor around... :( )
------------------------------------------------------------
so, my only advice to you is program icon form a templte file via: http://www.w3schools.com/icons/
or look into where your Linux distort / gui stores the defualt ICO files.... not going any further into this one...
-
If i can figure out how exactly it works on Windows then I will look elsewhere on how to translate that information into WINE.
Check ALL the links contained on my last (http://www.rejetto.com/forum/hfs-~-http-file-server/adding-icons/msg1061401/#msg1061401) post and you will understand how it works on Windows for sure. ::)
:) And please, next time only open one thread for the same issue, to keep things more organized and clean (we check all the forums for answers, so it doesn't matter where you post it). Keep in touch in case you don't find a solution.
-
sorry for the late reply,
it should be in the .vfs file, but for sure some of them are, i don't remember exactly the logic