Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 15 Aug 2018, 13:26
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
jwmrc missing menu labels
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
davids45


Joined: 26 Nov 2006
Posts: 1142
Location: Chatswood, NSW

PostPosted: Wed 08 Aug 2018, 03:30    Post subject:  jwmrc missing menu labels
Subject description: for sfs apps in 64-bit Pups
 

G'day,

I'm setting up a few 64-bit Pups and am adding my applications as sfs files, being boot-mounted.

Many of these applications are missing their label entries in the right-click Menus. Icons are there mostly but no text (screenshot for 'Fun' menu has blanks for the ace-of-penguins games which also have a missing menu icon).
The games and other missing-label apps all run as normal if the blank line in the Menu is clicked.
The ace-of-penguins pinboard icons beside the Menu in the screenshot run the game if clicked.

I thought this missing text was due to a fault in /root/.jwmrc which shows no labels for these blank menu entries, just "" as the label text (screenshot).

I tried text-editing this file in /root to add the required text labels but could not get the edits to persist. The respective .desktop files are not affected.

All other applications for the 64-bit Pups seem OK, it's just for my added sfs files.
No 32-bit Pups have this problem for their sfs files of the same packages.

Can anyone advise on a fix or cause of this missing label for sfs application packages as sfs files in .jwmrc or right-click menus of 64-bit Pups?

64-bit is definitely twice as hard as 32-bit Rolling Eyes .

Thanks for any clues,

David S.
64slacko-menu-blanks.jpg
 Description   right-click Menu in Slacko64-630 - missing text in Fun category; other apps in other categories also missing from sfs files
 Filesize   95.06 KB
 Viewed   122 Time(s)

64slacko-menu-blanks.jpg

jwmrc-blanklabels.jpg
 Description   note the "" for the ace-of-penguins games labels - otherwise the entries look fine
 Filesize   210.56 KB
 Viewed   122 Time(s)

jwmrc-blanklabels.jpg

Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4016
Location: King's Lynn, UK.

PostPosted: Wed 08 Aug 2018, 17:05    Post subject:  

Hi, David.

If ya want those edited changes to persisit, you're editing the wrong file. You need to edit /etc/xdg/templates/_root_.jwmrc. This is where changes are written to, and it generates the /root/.jwmrc file every time you re-boot, or run 'fixmenus', etc.

If you're editing /root/.jwmrc directly, I rather think you'll see a warning at the very top of the script NOT to edit that particular file.....but instead to edit the script that generates it.

Give that a try, and see if it works. Oh, BTW; what do your .desktop entries for these look like in /usr/share/applications? What are your 'Categories' set to? I've had several cases in recent months of installing apps, where the app itself functions fine, but has probably been 'converted' from a more mainstream distro's package.....and the Menu system is using categories that are not recognised by JWM.

Hence, no Menu-entry. For example; when I was making up the Cinelerra 5.0 packages a while back, the 'Categories' was set to 'X-Multimedia-sub'. Now Pup doesn't recognise that last bit, '-sub', so it didn't show. So I changed it to 'AudioVideo'.....and everything behaved itself.

Little things like that!


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 10856
Location: Charleston S.C. USA

PostPosted: Thu 09 Aug 2018, 08:38    Post subject:  

Do the SFS's have a
Code:
/usr/share/applications/
directory in them?
With a .desktop file for the program.
Does the .desktop file look something like this for data in it.

Example:
from Kodi.sfs
kodi.desktop
Code:
[Desktop Entry]
Version=1.0
Name=Kodi
GenericName=Media Center
Comment=Manage and view your media
Exec=kodi
Icon=/usr/share/icons/hicolor/128x128/apps/kodi.png
Terminal=false
Type=Application
Categories=AudioVideo;

Actions=Fullscreen;Standalone;

[Desktop Action Fullscreen]
Name=Open in fullscreen
Exec=kodi -fs

[Desktop Action Standalone]
Name=Open in standalone mode
Exec=kodi --standalone

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4016
Location: King's Lynn, UK.

PostPosted: Thu 09 Aug 2018, 11:24    Post subject:  

That's not a terribly Puppy-specific example, actually, bigpup....

It contains a lot of Gnome- and Debian/Ubuntu-type extra 'stuff'. Entries which, in Puppy, don't mean anything.

I like to think of a more Puppy-specific .desktop file as being something like this:-

Code:
[Desktop Entry]
Encoding=UTF-8
Name=FF-Quantum
Comment=Firefox Quantum browser
Exec=/root/my-applications/bin/FF-Quantum
Icon=/usr/share/pixmaps/ff-quantum.png
Type=Application
Terminal=false
StartupNotify=true
Categories=X-Internet-browser


From my FF-Quantum MenuEntry .pet. It only has the basics necessary for the application to work....

Just an example, you understand.....though I do agree with the need for the .desktop entry to actually exist in /usr/share/applications in the first place.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 10856
Location: Charleston S.C. USA

PostPosted: Thu 09 Aug 2018, 13:28    Post subject:  

I saw that as soon as I posted it.
It is a lot more than a basic Puppy .desktop file.
But nothing was stated about what were the SFS packages.

I did say something like this Rolling Eyes Laughing Laughing Laughing

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 890
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Thu 09 Aug 2018, 13:32    Post subject:  

Nothing wrong with either desktop file offered as examples. They are both freedesktop.org compliant. As long as the desktop file is freedesktop.org compliant
jwm will be happy with it.Being compliant with freedesktop.org is what permits menu entries being added automatically when installing programs from the
main distro repositories to the puppy jwm menu.The freedesktop.org specification for desktop files is puppy specific, making both examples puppy specific.
Same specs apply to both. FWIW.

,
Back to top
View user's profile Send private message 
davids45


Joined: 26 Nov 2006
Posts: 1142
Location: Chatswood, NSW

PostPosted: Thu 09 Aug 2018, 20:15    Post subject: Missing label source found (semi-SOLVED)
Subject description: But not the origin/cause (yet)
 

G'day,
Thanks for your posts and ideas.

I checked using Mike W's first reply and did not see anything that looked suspicious (nor that I understood what to do if I'm honest Confused (also debatable Shocked )).

But in the light of a new day, I did explore a bit further and located the source of the failure to enter label details in the JWM menu.

The .desktop files for the affected packages in the sfs have several entries starting without any text after the "=" sign (screenshot).
The constancy of these odd entries (same text recurs before the '=') looks due to a software glitsch in a package being used to create or otherwise do things with these sfs. Deleting these lines and the Menu is OK.

I initially thought that, as usual, it was me Embarassed , when I was editing out the many, many lines of other-language text in these files.
But the pattern of the same blank entries points to another cause, somewhere else in what I'm doing.

I'm still struggling with my 64-bit Pups and making their multi-application sfs so I'm fairly confident of picking up precisely where this is happening - only 64-bit sfs are affected.

Always the optimist,
David S.
empty-name-desktop-file.jpg
 Description   desktop file has empty lines - cause not yet found
 Filesize   59.2 KB
 Viewed   46 Time(s)

empty-name-desktop-file.jpg

empty-lines-deleted-now -OK.jpg
 Description   removing these empty lines and menu looks OK
 Filesize   51.72 KB
 Viewed   46 Time(s)

empty-lines-deleted-now -OK.jpg

Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4016
Location: King's Lynn, UK.

PostPosted: Fri 10 Aug 2018, 05:31    Post subject:  

perdido wrote:
Nothing wrong with either desktop file offered as examples. They are both freedesktop.org compliant. As long as the desktop file is freedesktop.org compliant
jwm will be happy with it.Being compliant with freedesktop.org is what permits menu entries being added automatically when installing programs from the
main distro repositories to the puppy jwm menu.The freedesktop.org specification for desktop files is puppy specific, making both examples puppy specific.
Same specs apply to both. FWIW.

,


Thanks for the info, perdido. I wasn't aware there even was a 'standard' that open-source DEs had to comply with. Now I am!

I'll research that a wee bit further.....in my quest for knowledge.

Cheers.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0710s ][ Queries: 13 (0.0047s) ][ GZIP on ]