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 Mon 27 Jan 2020, 09:56
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
mukstart - start menu like Cinnamon
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 4 [52 Posts]   Goto page: Previous 1, 2, 3, 4
Author Message
recobayu


Joined: 15 Sep 2010
Posts: 380
Location: indonesia

PostPosted: Thu 14 Nov 2019, 23:01    Post subject:  

Update muksearch:
add two buttons: Clear recent apps and Clear recent activities.
muksearch-v2.png
 Description   Buttons with relief="2"
 Filesize   22.1 KB
 Viewed   312 Time(s)

muksearch-v2.png

muksearch.gz
Description  191115_0949
gz

 Download 
Filename  muksearch.gz 
Filesize  10.04 KB 
Downloaded  62 Time(s) 
Back to top
View user's profile Send private message 
recobayu


Joined: 15 Sep 2010
Posts: 380
Location: indonesia

PostPosted: Wed 04 Dec 2019, 05:59    Post subject:  

Hi Everyone,
I make a new mukstart, but it is not complete yet. In this version, I can make the menu and submenu appear like left icon in button. I also make mukstart really like start menu in cinnamon. Any suggestion are welcome.
Thank you.
mukstart.png
 Description   When not search
 Filesize   58.84 KB
 Viewed   253 Time(s)

mukstart.png

191204mukstart.gz
Description  still need more addition
gz

 Download 
Filename  191204mukstart.gz 
Filesize  15.99 KB 
Downloaded  57 Time(s) 
Back to top
View user's profile Send private message 
recobayu


Joined: 15 Sep 2010
Posts: 380
Location: indonesia

PostPosted: Sun 08 Dec 2019, 23:33    Post subject:  

My code growing huge.. oh..
I can not write just in one script. the terminal says:
Code:
./191209_0859: line 374: /usr/bin/tail: Argument list too long
./191209_0859: line 375: /usr/sbin/gtkdialog: Argument list too long

So I split my code into two files: the engine that create gui and the run (jalan) script.
Please suggest me an advice.. I still learn programming with bash, gtkdialog.
Thank you.
191209_1101_mukstart.tar.gz
Description  real tar gz file
gz

 Download 
Filename  191209_1101_mukstart.tar.gz 
Filesize  4.41 KB 
Downloaded  43 Time(s) 
mukstart_191209_1101.png
 Description   pin it comment (right bottom) now like in start menu cinnamon
 Filesize   49.77 KB
 Viewed   192 Time(s)

mukstart_191209_1101.png

Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2798
Location: UK

PostPosted: Mon 09 Dec 2019, 05:11    Post subject:  

recobayu wrote:
My code growing huge.. oh..
I can not write just in one script. the terminal says:
[code]./191209_0859: line 374: /usr/bin/tail: Argument list too long
./191209_0859: line 375: /usr/sbin/gtkdialog: Argument list too long


I haven't looked at your code, but it's likely you are trying to hold too many lines in a variable.

Write the variable to a file, and operate on that instead.. Something like:

[code]
cat file1 file 2 | grep 'foo ' > /tmp/some_file
...

something="$(grep 'bar /tmp/some_file | sed "s/old_value/new_value/g" )"

[/code]

etc....


Or, it could be that you haven't wrapped something in quotes..

Like

[code]grep $some_value_with_spaces /tmp/somefile[/code]

or

[code]grep 'foo' $some_file_list[/code]


(of course this is a guess, based on the error you got...)

_________________
Pkg, mdsh, Woofy, Akita, VLC-GTK, Search
Back to top
View user's profile Send private message 
recobayu


Joined: 15 Sep 2010
Posts: 380
Location: indonesia

PostPosted: Mon 09 Dec 2019, 06:27    Post subject:  

Thank You, Scottman.
I split my code into two separate files. I call my make_gui_script from another file. And it's work.. Very Happy

Code:
#!/bin/sh
export mukstartdir=/root/.mukstart

/usr/local/mukstart/./mukstart_make_gui

tail -n +2 "$mukstartdir"/gui_mukstart > "$mukstartdir"/guifix
gtkdialog -f "$mukstartdir"/guifix --geometry +"0"+"0"

Now we can change display profile.
run from terminal:
Code:
mukstart
191209 mukstart.png
 Description   
 Filesize   69.12 KB
 Viewed   171 Time(s)

191209 mukstart.png

mukstart.pet
Description  contains face images from linuxmint
pet

 Download 
Filename  mukstart.pet 
Filesize  195.85 KB 
Downloaded  54 Time(s) 
Back to top
View user's profile Send private message 
sfs

Joined: 02 Nov 2013
Posts: 48
Location: Russia

PostPosted: Mon 16 Dec 2019, 10:27    Post subject:  

http://www.murga-linux.com/puppy/viewtopic.php?p=1041795#1041795 entry find apps - ok
http://www.murga-linux.com/puppy/viewtopic.php?p=1044100#1044100 find dont work

_________________
PuppyRus-Arch
Back to top
View user's profile Send private message Visit poster's website 
recobayu


Joined: 15 Sep 2010
Posts: 380
Location: indonesia

PostPosted: Sat 21 Dec 2019, 16:15    Post subject:  

sfs wrote:
http://www.murga-linux.com/puppy/viewtopic.php?p=1041795#1041795 entry find apps - ok
http://www.murga-linux.com/puppy/viewtopic.php?p=1044100#1044100 find dont work

Thank you, Sfs for your feedback.
I upload the new mukstart that be able to find an app.

sc0ttman wrote:
Write the variable to a file, and operate on that instead..

Thank you, Sc0ttman.
I found my problem. That is, I export my gui. The previous code is like this:
Code:

export gui='<?xml version="1.0"?>
<window decorated="true" resizable="false" title="Mukstart" icon-name="limuks-logo">
...
</window>' > "$mukstartdir"/gui_mukstart


Now I write in a file, so I just do like this:
Code:
echo '<?xml version="1.0"?>
<window decorated="true" resizable="false" title="Mukstart" icon-name="limuks-logo">
...
</window>' > "$mukstartdir"/gui_mukstart

Then I call my gui by tailing it.
Code:
tail -n +2 "$mukstartdir"/gui_mukstart | gtkdialog -s

Okay.

What new:
we can move from tree (search apps) using left and right arrow. Left go to search box (entry) and right go to display picture.
Run it by command "mukstart" from terminal.
At first walk, it is eat long time. But at second and later, it run faster.

Questions:
1. How to make fileselect can show preview of display picture?
2. This mukstart still long to wake up from I run it. Anyone know how to faster it?
Thank you.
mukstart-191222.png
 Description   
 Filesize   66.41 KB
 Viewed   70 Time(s)

mukstart-191222.png

mukstart-191222.pet
Description  Find app now work
pet

 Download 
Filename  mukstart-191222.pet 
Filesize  195.53 KB 
Downloaded  37 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 4 [52 Posts]   Goto page: Previous 1, 2, 3, 4
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
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.0527s ][ Queries: 13 (0.0145s) ][ GZIP on ]