You are not logged in.

#1 2022-09-26 11:56:01

beng
Member
Registered: 2015-09-29
Posts: 81

Need help with jgmenu > restore prepend.csv

Hi

I was trying to add 2 appimage entries to my multimedia menu, following this topic & Basic Introduction to jgmenu on BL Lithium
and i was trying to edit ~/.config/jgmenu/prepend.csv (ok, I know I should have started with backing up the file) but I must have messed up something unintentionally in the file as I'm ending up with my menus looking like this now:
jgmenu.png

I'm providing the prepend.csv here if anyone can help and highlight the error:

# BunsenLabs Main Menu,,,,,,,,,,,
,,,,,,,,,,,
@text,,6,6,150,20,2,left,top,auto,#000000 0,"<span size=""large"">?︎</span>"
@search,,24,3,150,20,2,left,top,auto,#000000 0,Type to Search
,,,,,,,,,,,
^sep(),,,,,,,,,,,
Run Program,gmrun,,,,,,,,,,
^sep(),,,,,,,,,,,
Terminal,x-terminal-emulator,utilities-terminal,,,,,,,,,
Web Browser,x-www-browser,web-browser,,,,,,,,,
File Manager,bl-file-manager,system-file-manager,,,,,,,,,
Text Editor,bl-text-editor,text-editor,,,,,,,,,
Media Player,bl-media-player,multimedia-player,,,,,,,,,
^sep(),,,,,,,,,,,
Applications,^checkout(apps),,,,,,,,,,
^sep(),,,,,,,,,,,
BL Utilities,^checkout(bl-utilities),applications-utilities,,,,,,,,,
Places,"^pipe(jgmenu_run ob --cmd=""bl-places-pipemenu"" --tag=""bl-places-pipemenu"")",folder,,,,,,,,,
Recent Files,"^pipe(jgmenu_run ob --cmd=""bl-recent-files-pipemenu -rl15"" --tag=""bl-recent-files-pipemenu"")",,,,,,,,,,
^sep(),,,,,,,,,,,
Preferences,^checkout(bl-preferences),preferences-system,,,,,,,,,
System,^checkout(bl-system),applications-system,,,,,,,,,
^sep(),,,,,,,,,,,
#Help &amp, Resources,"^pipe(jgmenu_run ob --cmd=""bl-help-pipemenu"" --tag=""bl-help-pipemenu"")",,,,,,,,,
Help &amp, Resources,^checkout(bl-help-menu),help-contents,,,,,,,,
Display Keybinds,"^pipe(jgmenu_run ob --cmd=""bl-kb-pipemenu"" --tag=""bl-kb-pipemenu"")",,,,,,,,,,
^sep(),,,,,,,,,,,
Lock Screen,bl-lock,system-lock-screen,,,,,,,,,
Exit,bl-exit,system-shutdown,,,,,,,,,
,,,,,,,,,,,
. /usr/share/bunsen/configs/menu-includes/help-menu,,,,,,,,,,,
,,,,,,,,,,,
^tag(bl-utilities),,,,,,,,,,,
Back,^back(),,,,,,,,,,
Take Screenshot,^pipe(bl-scrot-pipemenu),,,,,,,,,,
SSH,"^pipe(jgmenu_run ob --cmd=""bl-sshconfig-pipemenu"" --tag=""bl-sshconfig-pipemenu"")",,,,,,,,,,
Remote Desktop,"^pipe(jgmenu_run ob --cmd=""bl-remote-desktop-pipemenu"" --tag=""bl-remote-desktop-pipemenu"")",,,,,,,,,,
BLOB Themes Manager,bl-obthemes,,,,,,,,,,
# These two utilities are available if you uncomment the line.,,,,,,,,,,,
# Pipe menu to install and use Dropbox:,,,,,,,,,,,
#Dropbox,"^pipe(jgmenu_run ob --cmd=""bl-dropbox-pipemenu"" --tag=""bl-dropbox-pipemenu"")",,,,,,,,,,
# Utility to set language if login greeter does not offer that option:,,,,,,,,,,,
#Choose Language,bl-setlocale,,,,,,,,,,
,,,,,,,,,,,
^tag(bl-preferences),,,,,,,,,,,
Back,^back(),,,,,,,,,,
BunsenLabs,^checkout(bl-blConfig),,,,,,,,,,
Openbox,^checkout(bl-obConfig),,,,,,,,,,
jgmenu,^checkout(bl-jgmenuConfig),,,,,,,,,,
Keybinds,^checkout(bl-xbindkeysConfig),,,,,,,,,,
Compositor,"^pipe(jgmenu_run ob --cmd=""bl-compositor"" --tag=""bl-compositor"")",,,,,,,,,,
Conky,"^pipe(jgmenu_run ob --cmd=""bl-conky-pipemenu"" --tag=""bl-conky-pipemenu"")",conky-manager,,,,,,,,,
Tint2,"^pipe(jgmenu_run ob --cmd=""bl-tint2-pipemenu"" --tag=""bl-tint2-pipemenu"")",tint2,,,,,,,,,
Appearance,lxappearance,preferences-desktop-theme,,,,,,,,,
Reload GTK,bl-reload-gtk23,preferences-desktop-theme,,,,,,,,,
Font configuration,bl-text-editor ~/.config/fontconfig/fonts.conf,preferences-desktop-font,,,,,,,,,
Wallpaper,nitrogen,preferences-desktop-wallpaper,wallpaper,,,,,,,,
Notifications,xfce4-notifyd-config,notifyconf,,,,,,,,,
Power Management,xfce4-power-manager-settings,xfce4-power-manager-settings,,,,,,,,,
dmenu,^checkout(bl-dmenuconfig),,,,,,,,,,
gmrun,^checkout(bl-gmrunconfig),,,,,,,,,,
Display,^checkout(bl-DisplaySettings),,,,,,,,,,
,,,,,,,,,,,
BunsenLabs Session,^tag(bl-blConfig),,,,,,,,,,
Back,^back(),,,,,,,,,,
Edit autostart,bl-text-editor ~/.config/bunsen/autostart,,,,,,,,,,
Edit environment,bl-text-editor ~/.config/bunsen/environment,,,,,,,,,,
^sep(Manuals),,,,,,,,,,,
bunsenlabs-session,x-terminal-emulator -T 'man bunsenlabs-session' -e man bunsenlabs-session,,,,,,,,,,
xdg-autostart,x-terminal-emulator -T 'man bl-xdg-autostart' -e man bl-xdg-autostart,,,,,,,,,,
,,,,,,,,,,,
Openbox,^tag(bl-obConfig),openbox,,,,,,,,,
Back,^back(),,,,,,,,,,
Edit bl-rc.xml,bl-text-editor ~/.config/openbox/bl-rc.xml,,,,,,,,,,
^sep(),,,,,,,,,,,
WM Preferences,obconf --config-file ~/.config/openbox/bl-rc.xml,,,,,,,,,,
^sep(),,,,,,,,,,,
Reconfigure,openbox --reconfigure,,,,,,,,,,
Restart,openbox --restart,,,,,,,,,,
,,,,,,,,,,,
jgmenu,^tag(bl-jgmenuConfig),,,,,,,,,,
Back,^back(),,,,,,,,,,
Edit Menu Content,bl-text-editor ~/.config/jgmenu/prepend.csv,,,,,,,,,,
Edit Menu Settings,bl-text-editor ~/.config/jgmenu/jgmenurc,,,,,,,,,,
^sep(),,,,,,,,,,,
Sync theme with OpenBox,jgmenu_run init --apply-obtheme,,,,,,,,,,
Sync theme with GTK3,jgmenu_run init --apply-gtktheme,,,,,,,,,,
^sep(Help),,,,,,,,,,,
man page,x-terminal-emulator -T 'man jgmenu' -e man jgmenu,,,,,,,,,,
tutorial,x-terminal-emulator -T 'man jgmenututorial' -e man jgmenututorial,,,,,,,,,,
,,,,,,,,,,,
Keybinds,^tag(bl-xbindkeysConfig),,,,,,,,,,
Back,^back(),,,,,,,,,,
Edit .xbindkeysrc,bl-text-editor ~/.xbindkeysrc,,,,,,,,,,
Restart,sh -c 'pkill -x xbindkeys, xbindkeys_autostart',,,,,,,,,
^sep(),,,,,,,,,,,
# Next entry requires tk,,,,,,,,,,,
#Show Keybinds,xbindkeys_show,,,,,,,,,,
^sep(Help),,,,,,,,,,,
man page,x-terminal-emulator -T 'man xbindkeys' -e man xbindkeys,,,,,,,,,,
,,,,,,,,,,,
dmenu,^tag(bl-dmenuconfig),,,,,,,,,,
Back,^back(),,,,,,,,,,
Edit Start-up Script,bl-text-editor ~/.config/dmenu/dmenu-bind.sh,,,,,,,,,,
^sep(Help),,,,,,,,,,,
man page,x-terminal-emulator -T 'man dmenu' -e man dmenu,,,,,,,,,,
,,,,,,,,,,,
gmrun,^tag(bl-gmrunconfig),,,,,,,,,,
Back,^back(),,,,,,,,,,
Edit Config File,bl-text-editor ~/.gmrunrc,,,,,,,,,,
^sep(Help),,,,,,,,,,,
man page,x-terminal-emulator -T 'man gmrun' -e man gmrun,,,,,,,,,,
,,,,,,,,,,,
Display,^tag(bl-DisplaySettings),,,,,,,,,,
Back,^back(),,,,,,,,,,
ARandR Screen Layout Editor,arandr,,,,,,,,,,
^sep(Help),,,,,,,,,,,
man xrandr,x-terminal-emulator -T 'man xrandr' -e man xrandr,,,,,,,,,,
,,,,,,,,,,,
System,^tag(bl-system),,,,,,,,,,
Back,^back(),,,,,,,,,,
Printers,"^pipe(jgmenu_run ob --cmd=""bl-printing-pipemenu"" --tag=""bl-printing-pipemenu"")",printer,,,,,,,,,
Task Manager (htop),x-terminal-emulator -T 'htop task manager' -e htop,htop,,,,,,,,,
Install Selected Packages,^pipe(bl-install-pipemenu),,,,,,,,,,
Synaptic Package Manager,pkexec synaptic,synaptic,,,,,,,,,
Login Settings,pkexec bl-text-editor /etc/lightdm/lightdm-gtk-greeter.conf /etc/lightdm/lightdm.conf,lightdm-settings,,,,,,,,,
Login Interface,lightdm-gtk-greeter-settings-pkexec,lightdm-settings,,,,,,,,,
GParted,pkexec gparted,gparted,,,,,,,,,
Set Default Browser,"""x-terminal-emulator -T 'Select Default Browser' -e sh -c 'sudo update-alternatives --config x-www-browser; sleep 5'""",web-browser,,,,,,,,,
Edit Debian Alternatives,galternatives,galternatives,,,,,,,,,
^sep(),,,,,,,,,,,
About Bunsen Alternatives,"yad --button=""OK"":0 --center --window-icon=distributor-logo-bunsenlabs --text-info --title=""About Bunsen Alternatives"" --filename=""/usr/share/bunsen/docs/helpfile-bl-alternatives.txt"" --width=900 --height=700 --fontname=Monospace",distributor-logo-bunsenlabs,,,,,,,,,
,,,,,,,,,,,
,,,,,,,,,,,
^tag(apps),,,,,,,,,,,

(alternatively if anyone can provide the default prepend.csv, maybe I could find the difference)

Also, if anyone can help with how to easily add 2 appimage entries in my multimedia menu in jgmenu (as, obviously I couldn't manage by myself) for
~/bin/audacity-linux-3.1.3-x86_64.AppImage (removed the installed version of Audacity)
~/bin/freac-continuous-linux-x86_64.AppImage

Thanks a lot
Have a nice day everyone

Last edited by beng (2022-09-27 15:01:56)

Offline

#2 2022-09-26 12:01:21

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: Need help with jgmenu > restore prepend.csv

Offline

#3 2022-09-26 12:21:59

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: Need help with jgmenu > restore prepend.csv

From Introduction to the Bunsenlabs Lithium Desktop => Default BunsenLabs user configs;

"The config-files are stored in /usr/share/bunsen/skel/* and are copied to users home on first login." So, command

cp /usr/share/bunsen/skel/.config/jgmenu/prepend.csv ~/.config/jgmenu/prepend.csv

restores your menu.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#4 2022-09-26 12:35:22

beng
Member
Registered: 2015-09-29
Posts: 81

Re: Need help with jgmenu > restore prepend.csv

Thank you both, I managed to restore my menus; still i kept a copy of messed up prepend.csv to instigate what i did wrong...

[Edit: i messed up with the format!]


and will try to add the 2 entries to Multimedia

Last edited by beng (2022-09-26 13:02:14)

Offline

#5 2022-09-26 20:22:38

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: Need help with jgmenu > restore prepend.csv

beng wrote:

and will try to add the 2 entries to Multimedia

Do you mean that you want to add entry for your application to the Debian menu: Jgmenu => Applications?
That is the Debian menu, jgmenu reads. When "apt install xxx.deb", is run, a .deskop file is placed in /usr/share/applications. You can extract audacity.desktop from audacity_2.2.2-1+b1_amd64.deb, to /usr/share/applications (or ~/.local/share/applications). Edit paths with text editor.
I don't know if the snap has an desktop file, but you can copy and edit audacity.desktop.

Else, easiest is to edit prepend.csv.

The manpage for jgmenu says:

   Fields
       Each line of CSV menu data is parsed into the following fields using comma as a field separator:

       (1) description
       (2) command
       (3) icon
       (4) working directory
       (5) metadata
       (6) execute without “sh -c” wrapper

You only need to populate the 2 first fields.

Add after entry "Media Player,bl-media-player,multimedia-player"

Audacity appimage,~/bin/audacity-linux-3.1.3-x86_64.AppImage
fre:ac appimage,~/bin/freac-continuous-linux-x86_64.AppImage

or you can create own pipemenu or..

Moderator remark:
Forum rules says:
"Do not embed images larger than 250x250px into posts, use thumbnails linking to a hosted image instead."

Last edited by rbh (2022-09-26 20:58:18)


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#6 2022-09-27 14:58:16

beng
Member
Registered: 2015-09-29
Posts: 81

Re: Need help with jgmenu > restore prepend.csv

Hi rbh,

Thanks for your help.

I actually managed by:
- reinstalling the BL Audacity package (I had uninstalled it in order to use the Audacity appimage instead as it is more up-to-date)
- copying the audacity.desktop from /usr/share/applications to ~/.local/share applications
- editing the latter to point to the respective appimage in ~bin
- and that worked for Audacity, i.e. the Applications > Multimedia > Audacity menu entry now launches the audacity appimage (consequently i re-uninstalled the BL audacity package)
- then i made a copy of the ~/.local/share applications audacity.desktop, renamed it to Freac, edited it so that it launches the Fre:ac encoder appimage and that worked too
so not sure whether this is the right way to do things but it does the job; indeed, description and command are sufficient:

[Desktop Entry]
Name=Fre:ac
GenericName=Audio CD encoder
Comment=Encode audio files

Keywords=audio;sound;alsa;encoder;

Icon=Freac

Type=Application
Categories=AudioVideo;Audio;AudioVideoEditing;

Exec=~/bin/freac-continuous-linux-x86_64.AppImage
StartupNotify=false
Terminal=false
#MimeType=application/x-audacity-project;audio/aac;audio/ac3;audio/mp4;audio/x-ms-wma;video/mpeg;audio/flac;audio/x-flac;audio/mpeg;audio/basic;audio/x-aiff;audio/x-wav;application/ogg;audio/x-vorbis+ogg;

will investigate how to properly fill in the other fields but i believe Categories is what makes the entry show up under Multimedia...

rbh wrote:

Add after entry "Media Player,bl-media-player,multimedia-player"

Audacity appimage,~/bin/audacity-linux-3.1.3-x86_64.AppImage
fre:ac appimage,~/bin/freac-continuous-linux-x86_64.AppImage

sorry did not understand this bit?

(sorry for the image - edited the link)

Last edited by beng (2022-09-27 15:12:19)

Offline

#7 2022-09-27 17:30:25

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: Need help with jgmenu > restore prepend.csv

beng wrote:
rbh wrote:

Add after entry "Media Player,bl-media-player,multimedia-player"

Audacity appimage,~/bin/audacity-linux-3.1.3-x86_64.AppImage
fre:ac appimage,~/bin/freac-continuous-linux-x86_64.AppImage

sorry did not understand this bit

Some rows above the quote, I wrote: "Else, easiest is to edit prepend.csv."
That is ~/.config/jgmenu/prepend.csv.
But, it is better you if so create ~/.config/jgmenu/append.csv. Then you won't need to bother about future updates of bunsen-package.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

Board footer

Powered by FluxBB