Browse Source

Add sourcing of ~/.genentriesrc to the genentries script

tags/v4.5.4
Peter Munch-Ellingsen 5 months ago
parent
commit
ea9cfd0f41
1 changed files with 11 additions and 5 deletions
  1. +11
    -5
      extra/genentries

+ 11
- 5
extra/genentries View File

@@ -1,7 +1,16 @@
#!/bin/bash

svgpath="svgicons"
iconsize=$XLUNCHICONSIZE
# Get the users actual home directory in case we're running this with sudo
user_home=$(eval echo ~${SUDO_USER})

source $user_home/.genentriesrc

if [ -z "$svgpath" ]; then
svgpath="svgicons"
fi
if [ -z "$iconsize" ]; then
iconsize=$XLUNCHICONSIZE
fi
if [ -z "$iconsize" ]; then
iconsize=48
fi
@@ -46,9 +55,6 @@ esac
shift # past argument or value
done

# Get the users actual home directory in case we're running this with sudo
user_home=$(eval echo ~${SUDO_USER})

globalappfolder=/usr/share/applications
localappfolder=$user_home/.local/share/applications
pixmaps=/usr/share/pixmaps

Loading…
Cancel
Save