Picon location

AlexWilMac

Moderator
A stupid question: I have NO USB pen drive connected and my picons in /media/usb/picon.
As far as I see, it's not a symlink. So it seem to be in flash.
Now, I'd like to move them into the HDD (please: don't tell me it'll be always on 'cause it is anyway and it's not a problem).
What is the easiest way? Create a symlink in flash?
 

harddriver

Vu+ User
Hi

I can only say how the Path is in "normal E2 Images" i don´t know
if in the BH Images the path for the Symlink is the same cause i see a lot places where
Symlinks are placed in the BH Image so it´s only a suggestion
If you have DCC Installed ? go to /usr/share/enigma2
if there click right in the Popup choose : New Symlink
in the next Popup add
Target : /media/hdd/picon
Name : picon
than click ok thats all
note : you also need on the /hdd a Folder called : picon
of course with the picon´s in it
 

Attachments

  • Unbenannt.JPG
    Unbenannt.JPG
    318.8 KB · Views: 154

AlexWilMac

Moderator
Use Total Commander to copy picons into HDD directory which is: media/hdd/picon/
Good luck.
No, this way I just copy the folder but I don't tell the system to use it instead of the original. But I solved as written in my previous post.
 

nunigaia

Moderator
No, this way I just copy the folder but I don't tell the system to use it instead of the original. But I solved as written in my previous post.

Maybe if you check the "picon.py" in /usr/lib/enigma2/python/Components/Renderer/Picon.py you'll get the answers you need.
This python file defines where the picons can be found.

best regards
nunigaia
 

Tibii

Vu+ Newbie
Hi Everyone,

I would need a bit of help with picon locations. I would like to use entirely different
Picons on my Solo4K's LCD and the User Interface Infobar that appears on the
TV screen.

I tried to modify the skin_user.xml, changed the path="picon" to "piconlcd", but
does not have any effect. Still both the LCD and User Interface infobar takes the
picons from /usr/share/enigma2/picon folder.

<widget source="session.CurrentService" render="Picon" position="0,0" size="480,60" path="piconlcd">
<convert type="ServiceName">Reference</convert>
</widget>

Can anyone suggests what else to change to have different picon sets for LCD
and User Interface Infobar (without using LCD4Linux)?

Thanks

Tibii
 

AlexWilMac

Moderator
Maybe if you check the "picon.py" in /usr/lib/enigma2/python/Components/Renderer/Picon.py you'll get the answers you need.
This python file defines where the picons can be found.
I was reading this old post and, this time, I wanted to have a look at the picon.py as you suggested, but at the time this post referred to BH.
In OBH it is only in the compiled form, .pyo.

So, two questions:
1) may I take it from BH 309, delete the .pyo and let OBH to recompile it at start?

2) If so, if I change this line of the code:

for mp in ('/usr/share/enigma2/', '/', "/media/usb"):

into

for mp in ('/usr/share/enigma2/', '/', "/media/usb", "/media/hdd"):

will I get, as a result, to have the picons read even from the HDD?

3)
And, last but not least, I'm began changing the filenames from the format with references to the channel name format.
Initially, I use filenames with only small letters and no spaces.
But the I run into the first problem: Rai Sport + HD was not recognised by raisport+hd.png.
So, even if I hadn't read this picon.py file until today, I tried by raisportplushd.png

that seems exactly what is suggested by the line of code

name = re.sub('[^a-z0-9]', '', name.replace('&', 'and').replace('+', 'plus').replace('*', 'star').lower())

but it didn't work.
So I tried to keep the file name exactly as the channel name
"Rai Sport + HD" and it worked until yesterday when the picons were in /media/usb/picon, not today, after I moved into /media/hdd/picon

So I renamed it
raisportplushd.png

and it worked. Also, happened, that all the file names containing spaces and even capital letters, were OK from USB but not from HDD. So I had to rename them in small letters and without spaces. Why's that?
Would be possible to edit the picon.py file to be more "tolerant". Filenames with spaces and capital letters, that means their real names, are much easier to read through and to find by the PC O.S. when you need to.

Regards
 

nunigaia

Moderator
I was reading this old post and, this time, I wanted to have a look at the picon.py as you suggested, but at the time this post referred to BH.
In OBH it is only in the compiled form, .pyo.

So, two questions:
1) may I take it from BH 309, delete the .pyo and let OBH to recompile it at start?

2) If so, if I change this line of the code:

for mp in ('/usr/share/enigma2/', '/', "/media/usb"):

into

for mp in ('/usr/share/enigma2/', '/', "/media/usb", "/media/hdd"):

will I get, as a result, to have the picons read even from the HDD?

3)
And, last but not least, I'm began changing the filenames from the format with references to the channel name format.
Initially, I use filenames with only small letters and no spaces.
But the I run into the first problem: Rai Sport + HD was not recognised by raisport+hd.png.
So, even if I hadn't read this picon.py file until today, I tried by raisportplushd.png

that seems exactly what is suggested by the line of code

name = re.sub('[^a-z0-9]', '', name.replace('&', 'and').replace('+', 'plus').replace('*', 'star').lower())

but it didn't work.
So I tried to keep the file name exactly as the channel name
"Rai Sport + HD" and it worked until yesterday when the picons were in /media/usb/picon, not today, after I moved into /media/hdd/picon

So I renamed it
raisportplushd.png

and it worked. Also, happened, that all the file names containing spaces and even capital letters, were OK from USB but not from HDD. So I had to rename them in small letters and without spaces. Why's that?
Would be possible to edit the picon.py file to be more "tolerant". Filenames with spaces and capital letters, that means their real names, are much easier to read through and to find by the PC O.S. when you need to.

Regards

The code is not the same for BlackHole and Open BlackHole.
So no, don´t do it!

Take the file from git ( enigma 2 ). --> https://github.com/BlackHole/enigma2/tree/master/lib/python/Components/Renderer

best regards
nunigaia
 
Top