mukstart - start menu like Cinnamon

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#21 Post by recobayu »

tenochslb wrote:On puppy tarh 6.0.5

mukstart version 4.3.2.2

Code: Select all

 mukstart
rm: cannot remove ‘/usr/local/mukstart/pixmaps/*’: No such file or directory

** (gtkdialog:11320): ERROR **: gtkdialog: Error in line 1126, near token '</input>': syntax error

/usr/bin/mukstart: line 286: 11320 Trace/breakpoint trap   gtkdialog -f /usr/local/mukstart/gui --geometry +"0"+"0"
Thank you tenochslb.
Mukstart should be run in tahr 6.0.5. Please remove file /usr/local/mukstart/gui and then run mukstart again. I hope that works.

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#22 Post by recobayu »

nilsonmorales wrote:Hi a couple of questions
What requirements need this software?
It works with lxpanel and openbox?
the terminal shows me this error with version 4.3.1
** (gtkdialog:24169): ERROR **: gtkdialog: Error in line 265, near token '</vbox>': syntax error

./mukstart: línea 180: 24169 Trace/breakpoint trap gtkdialog -p guimuks --geometry +"0"+"0"
btw. im using retro precise+openbox+lxpanel
gtkdialog --version
gtkdialog version 0.8.4 r514M (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor
Built with support for: GTK+ 2, Glade
I am sorry nilson, I also have the same problem on lupu. I don't know why it happen. But mukstart run in tahrpup and xenialpup.

Maybe mukstart version 4.2 can run in every puppy. Because the newest version is grep from /root/.jwmrc, and the older version search directly from /usr/share/applications

User avatar
shadow of viper`
Posts: 113
Joined: Sat 28 Aug 2010, 00:47
Location: Hyderabad, India

#23 Post by shadow of viper` »

tenochslb wrote:
On puppy tarh 6.0.5

mukstart version 4.3.2.2

Code: Select all

 mukstart 
rm: cannot remove ‘/usr/local/mukstart/pixmaps/*’: No such file or directory 

** (gtkdialog:11320): ERROR **: gtkdialog: Error in line 1126, near token '</input>': syntax error 

/usr/bin/mukstart: line 286: 11320 Trace/breakpoint trap   gtkdialog -f /usr/local/mukstart/gui --geometry +"0"+"0"
From my limited testing earlier, i noticed that the errors are because of missing icon files in the <input> tags for certain applications

I manually edited the /usr/local/mukstart/gui file and copied the path to a generic icon (gexec to be precise)

mukstart opened normally after that

I did not get a chance to test this more thoroughly

User avatar
shadow of viper`
Posts: 113
Joined: Sat 28 Aug 2010, 00:47
Location: Hyderabad, India

#24 Post by shadow of viper` »

nilsonmorales wrote: Hi a couple of questions
What requirements need this software?
It works with lxpanel and openbox?
the terminal shows me this error with version 4.3.1

Code: Select all

** (gtkdialog:24169): ERROR **: gtkdialog: Error in line 265, near token '</vbox>': syntax error 

./mukstart: línea 180: 24169 Trace/breakpoint trap gtkdialog -p guimuks --geometry +"0"+"0"
btw. im using retro precise+openbox+lxpanel
gtkdialog --version
gtkdialog version 0.8.4 r514M (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor
Built with support for: GTK+ 2, Glade
I have tested this on lxpup which uses lxpanel+openbox and on compizpup which uses lxpanel+compiz

worked for me although with errors due to missing icon files (see previous posts)

can you confirm what shell you are using?

i suppose

Code: Select all

ls -l /bin/sh
would tell you

I remember having seen a post from learnhow2code where he indicated a similar error with non-bash shell and gtkdialog combination

Not really sure if your scenario is the same as his

Appreciate your help here

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#25 Post by recobayu »

Thank you Shadow..

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#26 Post by nilsonmorales »

thanks Shadow+recobayu
mukstart 4.3.2.2
** (gtkdialog:26387): ERROR **: gtkdialog: Error in line 384, near token '</vbox>': syntax error

/usr/bin/mukstart: línea 286: 26387 Trace/breakpoint trap gtkdialog -f /usr/local/mukstart/gui --geometry +"0"+"0"

Code: Select all

ls -l /bin/sh
lrwxrwxrwx 1 root root 4 mar 28  2014 /bin/sh -> bash
mukstart 4.2
run without icons
Image
mukstart
widget_tree_input_by_command(): Couldn't open '/tmp/mukstart/sublistApps' for reading.
widget_tree_input_by_command(): Couldn't open '/tmp/mukstart/ketemu' for reading.
widget_notebook_input_by_file(): Couldn't open '/tmp/mukstart/inputfile' for reading.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#27 Post by recobayu »

I plan to continue using tree on mukstart. And also add icon on that. XDG_DATA_DIRS. InsyaAllah on the next release. So hopely it runs in any puppy.[/i]

tenochslb

#28 Post by tenochslb »

recobayu wrote:
tenochslb wrote:On puppy tarh 6.0.5

mukstart version 4.3.2.2

Code: Select all

 mukstart
rm: cannot remove ‘/usr/local/mukstart/pixmaps/*’: No such file or directory

** (gtkdialog:11320): ERROR **: gtkdialog: Error in line 1126, near token '</input>': syntax error

/usr/bin/mukstart: line 286: 11320 Trace/breakpoint trap   gtkdialog -f /usr/local/mukstart/gui --geometry +"0"+"0"
Thank you tenochslb.
Mukstart should be run in tahr 6.0.5. Please remove file /usr/local/mukstart/gui and then run mukstart again. I hope that works.
This did not work

Thanks @shadow of viper for the icons hack

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#29 Post by recobayu »

I make mukstart using tree now. I tested it on lupu and xenial. It should be can run on any puppies.
Because the code is too wide, i attach it. But remove fake .gz first.
Please comment and suggestion for better mukstart. Here is the screenshoot
Attachments
30958mukstart5.gz
remove fake .gz
(7.37 KiB) Downloaded 376 times
search.png
when mukstart search
(36.51 KiB) Downloaded 430 times
muks.png
normal, without search
(43.91 KiB) Downloaded 470 times

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#30 Post by peebee »

recobayu wrote:I make mukstart using tree now. I tested it on lupu and xenial. It should be can run on any puppies.
Excellent - looking really promising - runs fine on LxPupSc

A few comments:
- config files should go into /root/.config/mukstart
- while resizing the window resizes the work area horizontally, the work area does not resize vertically
- a few application icons are not picked up or are wrong size

see screenie attached...
Thanks
peebee
Attachments
Screenshot.png
(41.85 KiB) Downloaded 622 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#31 Post by recobayu »

Thank You Peebee,
How to fill vertically in gtkdialog? anyone know?
peebee wrote:a few application icons are not picked up or are wrong size
Yes, I also got the same, it is no picked up

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#32 Post by MochiMoppel »

recobayu wrote:How to fill vertically in gtkdialog? anyone know?
What do you mean by "fill vertically"?

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#33 Post by peebee »

MochiMoppel wrote:
recobayu wrote:How to fill vertically in gtkdialog? anyone know?
What do you mean by "fill vertically"?
It means that the space occupied by the 2 trees expands horizontally if the window is resized but does not expand vertically - it is fixed at the height of the left hand tree.

To see - open mukstart and then resize the window by dragging on the corner....
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#34 Post by MochiMoppel »

peebee wrote:It means that the space occupied by the 2 trees expands horizontally if the window is resized but does not expand vertically - it is fixed at the height of the left hand tree.

To see - open mukstart and then resize the window by dragging on the corner....
I thought it was about adjusting window height to the tree height at startup (very tricky), not manual resizing. I can't see anything because I never was able to run mukstart. I now made my 3rd attempt with the newest version and I get this:

Code: Select all

** (gtkdialog:30092): ERROR **: gtkdialog: Error in line 325, near token '</vbox>': syntax error

./mukstart: line 286: 30092 Trace/breakpoint trap   gtkdialog -f /usr/local/mukstart/gui --geometry +"0"+"0"
BTW: The </vbox> error is cause by an empty vbox in /usr/local/mukstart/gui. Gtkdialog doesn't like that:

Code: Select all

			</button>
</vbox>
<vbox scrollable="true" width="300">
</vbox>
<vbox scrollable="true" width="300">
<button xalign="0">

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#35 Post by peebee »

MochiMoppel wrote:
peebee wrote:It means that the space occupied by the 2 trees expands horizontally if the window is resized but does not expand vertically - it is fixed at the height of the left hand tree.

To see - open mukstart and then resize the window by dragging on the corner....
I thought it was about adjusting window height to the tree height at startup (very tricky), not manual resizing. I can't see anything because I never was able to run mukstart. I now made my 3rd attempt with the newest version and I get this:

Code: Select all

** (gtkdialog:30092): ERROR **: gtkdialog: Error in line 325, near token '</vbox>': syntax error

./mukstart: line 286: 30092 Trace/breakpoint trap   gtkdialog -f /usr/local/mukstart/gui --geometry +"0"+"0"
BTW: The </vbox> error is cause by an empty vbox in /usr/local/mukstart/gui. Gtkdialog doesn't like that:

Code: Select all

			</button>
</vbox>
<vbox scrollable="true" width="300">
</vbox>
<vbox scrollable="true" width="300">
<button xalign="0">
Latest version (not a .pet - just a shellscript) is at:
http://www.murga-linux.com/puppy/viewto ... 953#921953

Works OK for me.....
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#36 Post by MochiMoppel »

The script works better.

To expand the tree vertically add:
Line 167: <notebook show-tabs="false" show-border="false" space-expand="true" space-fill="true">
Line 206:<text xalign="1" space-expand="false">

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#37 Post by peebee »

MochiMoppel wrote:The script works better.

To expand the tree vertically add:
Line 167: <notebook show-tabs="false" show-border="false" space-expand="true" space-fill="true">
Line 206:<text xalign="1" space-expand="false">
Thank you @MochiMoppel - that does the trick - but also changing line 169 to:

<tree rules-hint="false" headers-visible="false" hover-selection="true" space-expand="false" space-fill="false">

makes it even better....
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#38 Post by recobayu »

Another exploration.

Code: Select all

#!/bin/sh
Pil='Accessibility|Desktop|Screensaver'
grep -El "^Categories=.*($Pil)" /usr/share/applications/*>lok
grep "^Name=" `cat lok`|cut -d\= -f2>nama
grep "^Icon=" `cat lok`|cut -d\= -f2>ikon
grep "^Exec=" `cat lok`|cut -d\= -f2>exe

buatbutton(){
	howmuchline=$(wc -l lok|cut -d" " -f1)
	for i in $(seq 1 $howmuchline);do
		ikonku=$(sed -n $i\p ikon)
		namaku=$(sed -n $i\p nama)
		exeku=$(sed -n $i\p exe)
		if [[ $ikonku != *\/* ]];then
			for i in mini-icons pixmaps;do
				if [ -f /root/puppy-reference/$i/$ikonku ];then 
					ikonku=/root/puppy-reference/$i/$ikonku
				fi
			done
		fi
		echo '
		<hbox space-fill="true" space-expand="true">
		<button space-fill="false" space-expand="false" relief="2">
			<input file>'$ikonku'</input>
			<label> '$namaku'</label>
			<action>'$exeku'&</action>
			<action>EXIT:exit</action>
			<width>24</width>
		</button>
		<text><label>""</label></text>
		</hbox>'
	done
		
}

export -f buatbutton

export gui='
<window>
	<vbox scrollable="true" width="300" height="500">
		'"`buatbutton`"'
	</vbox>
</window>'
gtkdialog -p gui
This code gave me a clue.. maybe using button is better
Attachments
buttonleft.png
This look better, isn't it?
(38.73 KiB) Downloaded 664 times

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

YA-Menu

#39 Post by peebee »

Here is my take on a menu app - heavily based on the excellent work by recobayu but with quite a lot of changes....mainly aimed at LxPup but also works on jwm based pups....

When I have time I'll probably add "Favourites" and "Recently Used" facilities....

Cheers
peebee

p.s. also works on xslacko (but is very similar to the XFCE menu)
Attachments
Screenshot.png
(73.19 KiB) Downloaded 588 times
yamenu-1.pet
(3.43 KiB) Downloaded 502 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#40 Post by recobayu »

That is great, Peebee..
Thank you very much. :D

Post Reply