Package Details: lsdesktopf 1.0.7-4

Git Clone URL: https://aur.archlinux.org/lsdesktopf.git (read-only, click to copy)
Package Base: lsdesktopf
Description: List available *.desktop files and search in their content.
Upstream URL: https://github.com/AndyCrowd/list-desktop-files
Keywords: desktop files search view
Licenses: GPL3
Submitter: Andy_Crowd
Maintainer: Andy_Crowd
Last Packager: Andy_Crowd
Votes: 25
Popularity: 0.056699
First Submitted: 2016-03-20 17:41 (UTC)
Last Updated: 2016-09-17 17:12 (UTC)

Latest Comments

Andy_Crowd commented on 2016-09-17 17:20 (UTC)

added option "--empty-categories-exec | --ece" to show if the variable "Categories=" is empty but .desktop file contains Exec=.

Andy_Crowd commented on 2016-09-17 13:56 (UTC)

updated help sections, fixed a "bug", "renamed" options: '--sce' = '--c' , '--smc' = '--mc' to see all options with their alternatives found in lsdesktopf code use command: lsdesktopf --sm beta

Andy_Crowd commented on 2016-09-14 10:03 (UTC)

Tip to sort by name icons to get overview of which of the programs are using same icons: lsdesktopf --d | sort -t '#' -k 2,2 | less -R

Andy_Crowd commented on 2016-09-12 16:47 (UTC) (edited on 2016-09-13 07:49 (UTC) by Andy_Crowd)

added option --description or short --d that will only list content by pattern Name # Icon # Comment # FILENAME it is searching even in .directory files, will show result only if all of the options are available in the file. And I have also added for some options to search in .directory files and not only in .desktop The option "--less" is replaced with "--list" but it still can be used.

Andy_Crowd commented on 2016-09-11 13:15 (UTC)

I am testing programs and it is irritating when after update it creates autostart files again. I don't know how useful it is but I have added "--tn" or "--to-null" that will disable autostart by creating symlinks to "/dev/null" in "$HOME/.config/autostart" for files in "/etc/xdg/autostart/" . It also making some safety checks such as if /dev/null exist, if not the it will show command that can be used to create it. Creating automatically destination directory "$HOME/.config/autostart" if it isn't existing Here is a simple oneliner: for i in /etc/xdg/autostart/*;do ln -s /dev/null "$HOME/.config/autostart/${i//*\//}";done

Andy_Crowd commented on 2016-09-11 09:53 (UTC) (edited on 2016-09-11 09:56 (UTC) by Andy_Crowd)

added options for searching only in "Category" --show-more-category | --smc [text] - similar output to --more --show-categories-exec | --sce [text] (sf) searching only for categories. showing result by one line per exec found in a single file. use "sf" as the last option to show filename option --lc moved into --help ctg for more info use --help ctg

Andy_Crowd commented on 2016-09-10 17:06 (UTC) (edited on 2016-09-10 17:15 (UTC) by Andy_Crowd)

updated options --fp --fpo --fpe --fpoe now it can use multiple path but cannot add ";" to the end of each directory lsdesktopf --fpoe /usr/share/applications/ /etc/xdg to add a something to the end of line you can use: sed 's/$/;/'

Andy_Crowd commented on 2016-09-10 10:12 (UTC)

Tip for showing of all base options. I am trying to make it simply and putting all options that are in "case ... esac" tags close to begin of lines so it makes it easier to see them. It can be also some "beta" options that are currently are not described in --help ./lsdesktopf --sm | grep ^\-\-

Andy_Crowd commented on 2016-09-10 09:22 (UTC)

Here is the best example of checking which of folders are currently used # populate the variable DESKTOP_FILES export DESKTOP_FILES=$(lsdesktopf --fpoe /usr/share/applications/) # show default directories lsdesktopf --sdd

Andy_Crowd commented on 2016-09-09 19:20 (UTC) (edited on 2016-09-09 19:25 (UTC) by Andy_Crowd)

the options --suo and --sud are showing only unique variable names available in .desktop files without content and now I have added options --suoe and --sude that showing unique variable names with their content that can be used as an example of what each variable can contain, empty variables (without content) are ignored. --in-file "text" lang1,lang2 the option --in-file is based on option --less and has 3 types of output default: base content search text: showing only lines that are containing text, searching in both variables and content at once. languages: showing all available variables with translations for chosen languages. the option --in-file is available in --help sinf

Andy_Crowd commented on 2016-09-06 20:37 (UTC)

made it work a little faster and added option --in-file or short --if it shows same output as option --less but you must use path to a file. other options moved one step forward such as text to search and languages to show. the --in-file option is not listed yet in --help , will probably extended with more similar options and search for variable name instead of variable content and added in separate help section. Example: lsdesktopf --if mytest.desktop

Andy_Crowd commented on 2016-09-04 12:27 (UTC)

added option --fpoe that is same as --fpo but showing only folders that contains variable Exec Now it isn't necessary to use separator ";" if you will add folders as a list with new line: DESKTOP_FILES='/usr/share/speech-dispatcher/conf/desktop /usr/share/templates/.source /usr/share/Thunar/sendto /usr/share/wayland-sessions'

Andy_Crowd commented on 2016-09-02 22:03 (UTC)

added option "--fpe" that is similar to "--fp" but showing only folders that contains variable "Exec" in .desktop files export DESKTOP_FILES="$(lsdesktopf --fpe /usr/share ";")" export DESKTOP_FILES="$(lsdesktopf --fp /usr/share ";")"

Andy_Crowd commented on 2016-08-30 17:48 (UTC) (edited on 2016-08-30 18:24 (UTC) by Andy_Crowd)

added environment variables "NO_COLOR" and "DESKTOP_FILES" to disable colored output use "YES", any other values means "NO" export NO_COLOR="YES" DESKTOP_FILES must contains list of folders separated with symbol ; it overrides default preset list of directories in the script for option --fp added ability to add any symbol to the end of each directory that is useful for creation of arrays with preferred separators. Example: export DESKTOP_FILES="$(lsdesktopf --fp /usr/share ";")" lsdesktop gtk

Andy_Crowd commented on 2016-08-13 22:21 (UTC)

added more options to use with --sxs and --rxs additional options: n name show content of "Name=" c comment show content of "Comment=" dn desktopname show content of "DesktopName=" a all show content by pattern "Number Name # Comment # Exec"

Andy_Crowd commented on 2016-07-24 19:15 (UTC)

Added options to list or run X sessions with startx (not searching in /usr/share/wayland-sessions/) --sxs (show X sessions) list numbered content of Exec in .desktop files located at /usr/share/xsessions/ --rxs (run X session) as above but also asking to choose number of a session to start.

Andy_Crowd commented on 2016-07-06 12:50 (UTC) (edited on 2016-07-06 12:56 (UTC) by Andy_Crowd)

added option "-fm" to use after --gm: --gm -fm application/oxps,application/vnd.ms-xpsdocument,application/x-brasero ----- -fm [options] find .desktop files only for comma separated MIME types lsdesktopf --gm -fm $(echo $(grep =$ mimeapps.list) | sed -e 's/=/,/g' -e 's/ //g')

Andy_Crowd commented on 2016-06-27 11:59 (UTC)

added more output options to use after "--gdx -gfx" that can be comma separated. "sf" show path to .xml file where was found file name extension. "sm" show MIME type "sa" show acronym "sea" show extended acronym "ssc" show sub class "sal" show alias "sgi" show general icon description

Andy_Crowd commented on 2016-05-16 17:23 (UTC)

added option "--lc" to list all categories found in "/usr/share/applications/" and "$HOME/.local/share/applications/"

Andy_Crowd commented on 2016-05-15 21:13 (UTC)

added new options, fixed some bugs and added coloured output to file path and section names in some options

Andy_Crowd commented on 2016-05-12 20:25 (UTC)

added option "lsdesktopf --gen-mimeapps" to show output similar to section "[Added Associations]" in "mimeapps.list" file

Andy_Crowd commented on 2016-05-10 19:37 (UTC)

added new options to show only if all variables separated by "," are present in the file, "filename" is an option and not path to a file, used to show filenames and is optional: --including-only-var | --iov [var1,var2] (filename) . "see --help var" for details

Andy_Crowd commented on 2016-04-18 18:59 (UTC)

First translation of man pages into zh_CN and zh_TW are done but not included yet in PKGBUILD

Andy_Crowd commented on 2016-04-01 16:48 (UTC)

If you have any suggestions or a new features, please let me know.