Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

obmenu replacement ? Solved

Off-Topic discussions about science, technology, and non Debian specific topics.
Message
Author
User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: obmenu replacement ?

#21 Post by Scorpion »

Code: Select all

#!/usr/bin/python3
On obmenu2 I can see only python3, first line.

arzgi
Posts: 1183
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: obmenu replacement ?

#22 Post by arzgi »

Scorpion wrote: 2021-10-09 14:22

Code: Select all

#!/usr/bin/python3
On obmenu2 I can see only python3, first line.
Better would be

Code: Select all

#!/usr/bin/env python3

Bulkley
Posts: 6382
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ?

#23 Post by Bulkley »

Finally! I got Obmenu2 working. It took an apt full-upgrade to supply whatever it needed.

Thanks for the help.

User avatar
angeltoast
Posts: 3
Joined: 2021-10-14 15:55
Location: East Anglia, England
Has thanked: 2 times

Re: obmenu replacement ?

#24 Post by angeltoast »

Like you, I miss obmenu, so I've written a bash script to try to do the same job. It's still a bit rough, and needs more testing, but if you want to try it (in a safe environment - NOT on your live menu.xml) you're welcome to download it. I'll be grateful for feedback.
https://github.com/angeltoast/obhelper

Bulkley
Posts: 6382
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ? Solved

#25 Post by Bulkley »

Debian 11 in a VM. Openbox.

Code: Select all

~/obhelper-main$ ./obh.sh
obh3.sh: line 44: zenity: command not found
installed zenity plus 107 dependencies.

Code: Select all

$ ./obh.sh
This option is not available. Please see --help for all possible usages.
This is a good idea but so far not working.

User avatar
angeltoast
Posts: 3
Joined: 2021-10-14 15:55
Location: East Anglia, England
Has thanked: 2 times

Re: obmenu replacement ? Solved

#26 Post by angeltoast »

Bulkley wrote: 2021-10-14 18:36 Debian 11 in a VM. Openbox.

Code: Select all

~/obhelper-main$ ./obh.sh
obh3.sh: line 44: zenity: command not found
installed zenity plus 107 dependencies.

Code: Select all

$ ./obh.sh
This option is not available. Please see --help for all possible usages.
This is a good idea but so far not working.
Thanks for the feedback. Can you try it with Yad instead of Zenity, please? I tried to make it use either, but it seems that I used a feature that's only in Yad. I will have to remove the Zenity option from the code.

Bulkley
Posts: 6382
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ? Solved

#27 Post by Bulkley »

Thanks. I removed Zenity and its pile of dependencies and installed yad. That worked. Up popped OBhelper with what looks like your memu.xml. I renamed it and put a copy of my menu.xml in its place. Now it opens my menu. So far, so good. Suggestion: train OBhelper to use ~/.config/openbox/menu.xml.

User avatar
angeltoast
Posts: 3
Joined: 2021-10-14 15:55
Location: East Anglia, England
Has thanked: 2 times

Re: obmenu replacement ? Solved

#28 Post by angeltoast »

Bulkley wrote: 2021-10-15 20:32 Thanks. I removed Zenity and its pile of dependencies and installed yad. That worked. Up popped OBhelper with what looks like your memu.xml. I renamed it and put a copy of my menu.xml in its place. Now it opens my menu. So far, so good. Suggestion: train OBhelper to use ~/.config/openbox/menu.xml.
Wonderful, thanks.
I have held back from letting it loose on users' live menu.xml until all the bugs are ironed out. If you are in a vm and want to try it, you can call it with: ./obh.sh /home/<your username>/.config/openbox/menu.xml
Alternatively, if you are confident with editing shell scripts, you could open obh.sh and scroll down to line 84 and uncomment it (also comment out line 85).
Thanks again for the feedback.

Bulkley
Posts: 6382
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ? Solved

#29 Post by Bulkley »

Code: Select all

$ ./obh.sh /home/<my user name>/.config/openbox/menu.xml 
cp: cannot stat 'menu.xml': No such file or directory
./obh.sh: line 57: menu.xml: No such file or directory
cat: display.obh: No such file or directory
rm: cannot remove 'check.obh': No such file or directory
It opens Obhelper but it's blank.

obh.sh line 84 is --center --on-top . Do you mean these?

Code: Select all

if [ !$1 ]; then                       # Paths for testing and standard use
    # XmlPath="/home/$USER/.config/openbox/menu.xml"
     XmlPath="menu.xml"
I am seeing those as lines 50, 51 and 52. If I unblock 51 and block 52 Obhelper opens but it's blank. I know the path is correct because Openbox is reading and displaying it.

Post Reply