Setting up xlunch[er]

a very small Live CD shaped to look and act like Puppy Linux.


Moderator: fredx181

Post Reply
dancytron
Posts: 766
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 561 times
Been thanked: 239 times

Setting up xlunch[er]

Post by dancytron »

I've been experimenting with xlunch (or xluncher) and thought I'd share the way I've set it up.

There are 2 files to worry about. The script in /usr/local/bin that generates the menu and the other is the entries.dsv file which contains the menu items and which by default is generated and updated automatically.

There are some sample scripts /usr/local/bin/xluncher*

Here is one of them. /usr/local/bin/xluncher2 Note it references the entries.dsv that is automatically updated.

Code: Select all

#!/bin/bash

[ -f $HOME/.config/xlunch/entries.dsv ] && ENTRIES=$HOME/.config/xlunch/entries.dsv || ENTRIES=/etc/xlunch/entries.dsv
xlunch -i $ENTRIES -I 5 -T 5 -a --iconsize 16 --columns 4 --sideborder 2% --background /usr/share/wallpapers/wp.jpg --font FreeSans/11 --paddingswap --leastmargin 1 --border 3% --borderratio 30 --sideborderratio 20

Here is one that I modified. Type "xluncher --help" for a list of parameters. I changed the link to the entries.dsv file to one I manually created and doesn't get updated.

Code: Select all

#!/bin/bash

#there is no /etc/xlunch/entries.dsv, if this starts to fail, check if one was #created somehow and delete it

[ -f /root/xlunch/entries10feet.dsv ] && ENTRIES=$HOME/xlunch/entries10feet.dsv || ENTRIES=/etc/xlunch/entries10feet.dsv
xlunch -i $ENTRIES -x +10 -y +10 -w 1080 -h 1000 --dontquit -W --border 5% --sideborder 10% --borderratio 5 --sideborderratio 50 \
         --background /root/milkywayphone.jpg --textcolor f59e42 --font FreeSans/22  \
           -I 5 -T 5 -a --columns 2 \
          --paddingswap --leastmargin 1 --iconsize 72 \

Then I took a copy of the automatically generated entries.dsv and copied it to /root/xlunch. Then I can run this script to generate a list of any new menu entries so I can paste them into the manually created entries10feet.dsv if I want to.

Code: Select all

#!/bin/sh


#Generates /root/Desktop/NewXLunchDiffs.txt by 
#    root@BusterLenovoDog:~# diff /root/xlunch/entries.dsv /root/.config/xlunch/entries.dsv > /root/Desktop/NewXLunchDiffs.txt
# Then, copy /root/.config/xlunch/entries.dsv to /root/entries.dsv for next time.

diff /root/xlunch/entries.dsv /root/.config/xlunch/entries.dsv > /root/Desktop/XLunchDiffs.txt

Which generates a file like this.

Code: Select all

0a1
> Freetube in DebianLinked;/usr/share/pixmaps/yt.png;/live/image/DebianLinked/FreeTube64-portable/LAUNCH_NL
139a142
> Vivaldi In Debian Linked;/live/image/DebianLinked/Vivaldi-portable/vivaldi/product_logo_256.png;/live/image/DebianLinked/Vivaldi-portable/LAUNCH_NL

which you can cut and paste to update your manually created files.

There is some sort of error checking. It won't let you edit the individual lines so that they don't match the .desktop files exactly. All the entries on the list above the bad entry will just not be there.

I've been using "Menumaker" to create new .desktop files for scripts that don't have them. I need to figure out a more sensible way, but I've been forcing the menu to manually refresh by reinstalling a small application in synaptic 2x.

I installed it from Fred's repo in Fossapup with peebee's lxde addon. It opened and the files seemed to all be in the right places, so ideally this will all work on Puppy too.

The other thing I've played around with is using "run-as-user" from root and sudo from puppy to run as a different user. Might be useful...

Attachments
xlunchadmin.jpg
xlunchadmin.jpg (77.76 KiB) Viewed 806 times
xlunch10foot.jpg
xlunch10foot.jpg (85.28 KiB) Viewed 806 times
Last edited by dancytron on Sat Dec 04, 2021 7:09 pm, edited 5 times in total.
User avatar
Flash
Moderator
Posts: 1009
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 56 times
Been thanked: 135 times

Re: Setting up xlunch

Post by Flash »

Which is it, xlunch or xluncher? You seem to use both interchangeably.

Chaos coordinator :?
dancytron
Posts: 766
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 561 times
Been thanked: 239 times

Re: Setting up xluncher

Post by dancytron »

It should be xluncher.

I'll fix it in text.

User avatar
rockedge
Site Admin
Posts: 6866
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3018 times
Been thanked: 2817 times
Contact:

Re: Setting up xluncher

Post by rockedge »

I'm using xluncher in WDL-Void builds. I have listed the section from the PLUG file that si the recipe for a WeeDog-Void 64 bit using ROX and JWM as the desktop. The xluncher works well in WeeDog but the set up evolved from using xluncher in Puppy LInux Bionic both 32 and 64 bit.
a 32 bit version is here ->

Code: Select all

wget http://rockedge.org/kernels/data/firstrib/xlunch_4.1.1-1_i386.tar.gz

Code: Select all

# install xlunch
cd /root/Build
wget http://rockedge.org/kernels/data/firstrib/xlunch_4.1.1-1_amd64.tar.gz
tar xvfz xlunch_4.1.1-1_amd64.tar.gz
cd xlunch_4.1.1-1_amd64
cp -r $PWD/etc/xdg/menus /etc/xdg/menus
cp -r $PWD/etc/xlunch /etc/xlunch
cp -r $PWD/usr/local/bin/xlunch /usr/local/bin/xlunch
cp -r $PWD/usr/local/bin/xlunch-menu /usr/local/bin/xlunch-menu
cp -r $PWD/usr/local/bin/xlunch-menu-update  /usr/local/bin/xlunch-menu-update
cp -r $PWD/usr/local/bin/xlunch-menu-gen /usr/local/bin/xlunch-menu-gen
cp -r $PWD/usr/local/bin/xlunch-logout /usr/local/bin/xlunch-logout
cp -r $PWD/usr/local/bin/xluncher3 /usr/local/bin/xluncher3
cp -r $PWD/usr/local/share/fonts /usr/local/share/fonts
cp -r $PWD/usr/share/wallpapers /usr/share/wallpapers
cp -r $PWD/usr/share/xlunch /usr/share/xlunch
cp -r $PWD/usr/share/icons/hicolor/48x48/apps/xlunch.png /usr/share/icons/hicolor/48x48/apps/xlunch.png
cp -r $PWD/usr/share/icons/hicolor/48x48/apps/highlight.png /usr/share/icons/hicolor/48x48/apps/highlight.png
cp -r $PWD/usr/share/icons/hicolor/48x48/apps/xlunch_ghost.png /usr/share/icons/hicolor/48x48/apps/xlunch_ghost.png
cp -r $PWD/usr/share/pixmaps/xlunch-logo.png /usr/share/pixmaps/xlunch-logo.png
cp -r $PWD/usr/share/applications/Xlunchlogout.desktop /usr/share/applications/Xlunchlogout.desktop
cp -r $PWD/usr/share/applications/Xlunch3.desktop /usr/share/applications/Xlunch3.desktop
cp -r $PWD/usr/share/applications/update-entries.desktop /usr/share/applications/update-entries.desktop

rm -r /etc/xlunch/logout.dsv
cat <<'EOF' >> /etc/xlunch/logout.dsv
Shutdown;/usr/share/xlunch/icons/logout/shutdown.png;poweroff
Restart;/usr/share/xlunch/icons/logout/restart.png;reboot
Suspend;/usr/share/xlunch/icons/logout/suspend.png;logout
Exit X;/usr/share/xlunch/icons/logout/logout.png;pkill X
Cancel;/usr/share/xlunch/icons/logout/cancel.png;killall xlunch
EOF
2021-12-04-112257_1024x768_scrot.png
2021-12-04-112257_1024x768_scrot.png (197.17 KiB) Viewed 766 times
2021-12-04-112313_1024x768_scrot.png
2021-12-04-112313_1024x768_scrot.png (67.3 KiB) Viewed 766 times
User avatar
fredx181
Posts: 3290
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 414 times
Been thanked: 1425 times
Contact:

Re: Setting up xluncher

Post by fredx181 »

Is now everybody calling it "xluncher" ?
It's "xlunch", the example scripts that call xlunch (in /usr/local/bin) are named xluncher{1.2.3}
EDIT: So, the title of this thread as it first was: Setting up xlunch , is correct IMO.
EDIT2: Thread in old puppy-linux forum: https://oldforum.puppylinux.com/viewtopic.php?t=114208

User avatar
Wiz57
Moderator
Posts: 738
Joined: Fri Dec 13, 2019 3:54 pm
Location: Chickasha, OK USA
Has thanked: 95 times
Been thanked: 169 times

Re: Setting up xlunch

Post by Wiz57 »

My first encounter with xlunch was around 2017 or so when Tomas M changed to Debian as the
base for Slax rather than Slackware...Slax 9 used xlunch to handle launching applications.
I still wonder where whomever did it came up with the name "xlunch"...??? Lunch? Now I'm
hungry!
Wiz :D

Signature available upon request

dancytron
Posts: 766
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 561 times
Been thanked: 239 times

Re: Setting up xluncher

Post by dancytron »

fredx181 wrote: Sat Dec 04, 2021 5:24 pm

Is now everybody calling it "xluncher" ?
It's "xlunch", the example scripts that call xlunch (in /usr/local/bin) are named xluncher{1.2.3}
EDIT: So, the title of this thread as it first was: Setting up xlunch , is correct IMO.
EDIT2: Thread in old puppy-linux forum: https://oldforum.puppylinux.com/viewtopic.php?t=114208

I have no idea. I didn't really think about it.

All my scripts say "xlunch" and I'm not changing those...

User avatar
fredx181
Posts: 3290
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 414 times
Been thanked: 1425 times
Contact:

Re: Setting up xluncher

Post by fredx181 »

dancytron wrote: Sat Dec 04, 2021 6:00 pm
fredx181 wrote: Sat Dec 04, 2021 5:24 pm

Is now everybody calling it "xluncher" ?
It's "xlunch", the example scripts that call xlunch (in /usr/local/bin) are named xluncher{1.2.3}
EDIT: So, the title of this thread as it first was: Setting up xlunch , is correct IMO.
EDIT2: Thread in old puppy-linux forum: https://oldforum.puppylinux.com/viewtopic.php?t=114208

I have no idea. I didn't really think about it.

All my scripts say "xlunch" and I'm not changing those...

Confused :? Which scripts, you made or... ?
Well... call things how you like, was just saying that the program is called 'xlunch' not 'xluncher'.

dancytron
Posts: 766
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 561 times
Been thanked: 239 times

Re: Setting up xluncher

Post by dancytron »

fredx181 wrote: Sat Dec 04, 2021 6:28 pm
dancytron wrote: Sat Dec 04, 2021 6:00 pm
fredx181 wrote: Sat Dec 04, 2021 5:24 pm

Is now everybody calling it "xluncher" ?
It's "xlunch", the example scripts that call xlunch (in /usr/local/bin) are named xluncher{1.2.3}
EDIT: So, the title of this thread as it first was: Setting up xlunch , is correct IMO.
EDIT2: Thread in old puppy-linux forum: https://oldforum.puppylinux.com/viewtopic.php?t=114208

I have no idea. I didn't really think about it.

All my scripts say "xlunch" and I'm not changing those...

Confused :? Which scripts, you made or... ?
Well... call things how you like, was just saying that the program is called 'xlunch' not 'xluncher'.

The scripts I made that have xlunch instead of xluncher.

The website is http://xlunch.org/, the sample scripts are xluncher, and I used xlunch...

What do you think of using it as a platform to run as a different user?

Post Reply

Return to “DebianDogs”