Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
7e9f8002
Commit
7e9f8002
authored
Apr 02, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-programs: add --short support
parent
e646575d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
epm
bin/epm
+1
-1
epm-programs
bin/epm-programs
+8
-0
No files found.
bin/epm
View file @
7e9f8002
...
@@ -308,7 +308,7 @@ check_command()
...
@@ -308,7 +308,7 @@ check_command()
epm_cmd
=
list_available
epm_cmd
=
list_available
direct_args
=
1
direct_args
=
1
;;
;;
programs
)
# HELPCMD: print list of installed GUI program(s) (they have .desktop files)
programs
)
# HELPCMD: print list of installed
packages with
GUI program(s) (they have .desktop files)
epm_cmd
=
programs
epm_cmd
=
programs
direct_args
=
1
direct_args
=
1
;;
;;
...
...
bin/epm-programs
View file @
7e9f8002
...
@@ -32,6 +32,14 @@ epm_programs()
...
@@ -32,6 +32,14 @@ epm_programs()
esac
esac
[
-d
"
$DESKTOPDIR
"
]
||
fatal
"There is no
$DESKTOPDIR
dir on the system."
[
-d
"
$DESKTOPDIR
"
]
||
fatal
"There is no
$DESKTOPDIR
dir on the system."
if
[
-n
"
$short
"
]
;
then
cd
$DESKTOPDIR
||
fatal
showcmd
ls
-1
*
.desktop
ls
-1
*
.desktop
exit
fi
#find /usr/share/applications -type f -name "*.desktop" | while read f; do pkg_files="$f" quiet=1 short=1 epm_query_file ; done | sort -u
#find /usr/share/applications -type f -name "*.desktop" | while read f; do pkg_files="$f" quiet=1 short=1 epm_query_file ; done | sort -u
showcmd
"find
$DESKTOPDIR
-type f -print0 -name "
*
.desktop
" | xargs -0
$0
-qf --quiet --short | sort -u"
showcmd
"find
$DESKTOPDIR
-type f -print0 -name "
*
.desktop
" | xargs -0
$0
-qf --quiet --short | sort -u"
find
$DESKTOPDIR
-type
f
-print0
-name
"*.desktop"
|
\
find
$DESKTOPDIR
-type
f
-print0
-name
"*.desktop"
|
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment