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 Thu 17 Apr 2014, 23:21
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
New xdg menu proposal and implementation
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [28 Posts]   Goto page: Previous 1, 2
Author Message
01micko


Joined: 11 Oct 2008
Posts: 7547
Location: qld

PostPosted: Sat 18 May 2013, 08:28    Post subject:  

Hi Mobeus,

I like it! I gave it some brief trials, and when I get a bit of time in about a month or so I'll probably whack it in a thinslacko build (which has become my favoured test bed) as the main menu generator. That way fellows like peebee can test with lxde, also icewm should run fine maybe some others. (there is a fluxbox official slacko pet, created by dejan555).

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
peebee


Joined: 21 Sep 2008
Posts: 1272
Location: Malvern, Worcs, UK

PostPosted: Sat 18 May 2013, 12:34    Post subject:  

01micko wrote:
Hi Mobeus,
I like it! ..... I'll probably whack it in a thinslacko build .... fellows like peebee can test with lxde
Cheers

I'm up for experimenting and testing....I'm following the thread....
Cheers
peebee

_________________
LxPup-14.03 = Puppy + LXDE
Back to top
View user's profile Send private message 
oldyeller


Joined: 15 Nov 2011
Posts: 721
Location: Mishawaka IN

PostPosted: Sat 18 May 2013, 14:22    Post subject:  

Hi Mobeus,

Which tar.gz do I need to compile? and do I need all three? I did the manual moving of the files. This is a very promising fix to the menu Cool


Cheers
Back to top
View user's profile Send private message 
Mobeus


Joined: 26 Aug 2010
Posts: 94

PostPosted: Mon 20 May 2013, 11:18    Post subject:  

Hi everyone,

Sorry for not getting back sooner, been offline for a few days.
lvds wrote:
Did Barry said something about integration on future releases ?

As far as I know, Barry is unaware of this thread.

@01micko, peebee
Sounds good. I'll be patient.

oldyeller wrote:
Which tar.gz do I need to compile? and do I need all three?

implementation.tar.gz has everything in it to implement the menus. If for any reason the /root/my-applications/bin/gen_pup_xdg fails to run for you then you would need to compile the source-gen_pup_xdg.tar.gz source with BaCon BASIC version 2.0 build 1 or greater.

_________________
/root for the home team
Back to top
View user's profile Send private message 
lvds


Joined: 23 Jan 2007
Posts: 315
Location: Near the window

PostPosted: Wed 22 May 2013, 03:32    Post subject:  

Mobeus wrote:
Hi everyone,

Sorry for not getting back sooner, been offline for a few days.
lvds wrote:
Did Barry said something about integration on future releases ?

As far as I know, Barry is unaware of this thread.


would be great to bring it all upstream for the next puppy release Wink
great work

_________________
This is China today
Asus 1225C eeePC Atom Cedar Trail 2G Ram - DELL Optiplex 780 core2 duo 4G Ram, Intel4 chipset Video, ICH10 chipset Audio, Intel 82567LM-3 Network
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 3789
Location: Gatineau (Qc), Canada

PostPosted: Thu 23 May 2013, 04:18    Post subject:  

@Mobeus:

Hi!

Do you think that a discussion of the *.desktop categories and a draft remedy would be off-subject in this thread? (Since they have a bearing on menu creation.) It would from a non-XML angle, since my default wm is pekwm (which works with straight-text menu and config files).

I think I might have stumbled onto a corrective. (Not the right word in English, I know.)

BFN.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 3789
Location: Gatineau (Qc), Canada

PostPosted: Thu 30 May 2013, 14:08    Post subject:  

Hello, all.

I have made some observations which may also be relevant to this xdg-menu thread, here:

http://murga-linux.com/puppy/viewtopic.php?p=706193&sort=lastpost#706193

Because the desktop standards are not all that more logical, when you take a close look at them.

Best regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Mobeus


Joined: 26 Aug 2010
Posts: 94

PostPosted: Sat 01 Jun 2013, 01:20    Post subject:  

Hi musher0,

I don't understand your issue with the xdg categories. The official categories are defined so that application developers have a standard choice of which one their app should go in so it will actually show up in the menus of different distros.

There is no rule that says a desktop file must have multiple categories, but my understanding is the category list is an order of preference and once the app has been assigned to a menu it is not to show up in another one. There also is no rule that prevents a user from reassigning the app to a single category or even a self-defined category.

Also, if the OS developers want the categories limited to a specific few or expanded with X-custom ones that is their choice. But that choice only applies to official packages targeted for that system and the user is still free to add, subtract, or rearrange as they please. If the OS developers make a complete hash of the menu that is a reflection on those developers, not the menu spec.

_________________
/root for the home team
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 1875
Location: The Blue Marble

PostPosted: Mon 03 Jun 2013, 03:29    Post subject:  

Hi Mobeus,

Thanks for this very informative thread. I have always been curious about xdg menu system but didn't have the motivation enough to investigate it because it used to work fine with the old lxpanel used in earlier versions of Fatdog.

It's only in very recent versions where we finally use the updated lxpanel, the menus (especially the categories) got screwed. With the help of your informative posts, I re-read the xdg menu spec. Turned out that the newer Lxpanel / menu-cache implements the spec fully now and all I need to do is fix the applications.menu file (and other *.menu files as needed).

I may not be using your programs to auto-generate the applications.menu but other than that I still thank you for your posts as they get me thinking. I am definitely going to edit those *.menu files so that future xdg-compliant panels and wms will work correctly.

cheers!

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sat 20 Jul 2013, 13:49    Post subject:  

Thought I'd give this a whirl. Compiling on Arch. Minor problem. Won't affect Puppy users, until you get newer toolchains...
Code:
./bacon.ksh gen_pup_xdg.bac
Converting 'gen_pup_xdg.bac'... done.
Compiling 'gen_pup_xdg.bac'... Compiler error:

Problem:
    file 'gen_pup_xdg.bac' line 324: g_type_init()
Cause:
    'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
sfs

Joined: 02 Nov 2013
Posts: 8
Location: Russia

PostPosted: Sat 02 Nov 2013, 02:23    Post subject:  

Code:
#!/bin/ash
#131102 sfs
[ ! "$1" ] && echo 'Find ico & change:
         <item label="Leafpad - editor" icon="leafpad">
    to
         <item label="Leafpad - editor" icon="/usr/share/pixmaps/leafpad.xpm">

    Usage: '$0' menufile' && exit

ICONPATH="/usr/share/icons /usr/share/pixmaps" # /usr/local/share/pixmaps"

for j in `sed -n '/icon=/s/^.*icon="\([^"\.]*\)".*$/\1/p' "$1" | sort -u` ;do
    i="`find $ICONPATH -name "$j.[px][np][gm]"|tail -1`"
    [ -z "$i" ] && continue
    sed -i 's,icon="'"$j"'",icon="'"$i"'",' "$1"
done
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sat 02 Nov 2013, 12:21    Post subject:  

musher0 wrote:
I remember I also tried technosaurus' menu tools a while back on the same Puppy. So there might have been interferences.
There should be no interference by jwm_menu_create, it doesn't even touch the .menu files because the whole menu spec is targeted toward multiuser systems in such a way that the C implementation is 15X slower than my shell implementation that ignores the puppy-irrelevant parts of the spec. (mostly due to the "exclude" directive)

On a single user system all you need to do to customize a menu is move .desktop files from /usr/share/applications (and maybe back later), which can be done with ROX-Filer or a gtkdialog interface (woof has an example, adapted from the really old puppy builder - the include/exclude packages with arrows in the middle) to move them between /usr/share/applications and /usr/share/apps.hide (or whatever)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
mcewanw

Joined: 16 Aug 2007
Posts: 2010
Location: New Zealand

PostPosted: Fri 21 Feb 2014, 23:15    Post subject:  

I've just come across this thread Mobeus, and I think your work is really on track here, having been reading a lot about xdg recently. I hope you are still developing it and that it is being adopted.

EDIT:

Don't know if you are aware of the thread below Mobeus. If your efforts could be adapted to solve the icewm (and jwm) xdg menu issues there, they would be very welcomed I'm sure. It is a true debian-based, multiuser, but puppy-like look and feel (and size) system that boots by default to desktop as root user. It's creator is murga forum member saintless (Toni). I've notified Toni of your work (and rarsa's) there:

http://murga-linux.com/puppy/viewtopic.php?p=760187#760187

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [28 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.0752s ][ Queries: 12 (0.0042s) ][ GZIP on ]