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
002b99ca
Commit
002b99ca
authored
Mar 16, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack vkteams: prevent install local desktop file
parent
291c6068
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
vkteams.sh
repack.d/vkteams.sh
+18
-6
No files found.
repack.d/vkteams.sh
View file @
002b99ca
...
...
@@ -7,16 +7,28 @@ PRODUCT=vkteams
.
$(
dirname
$0
)
/common.sh
add_bin_exec_command
$PRODUCT
# Hack against https://bugzilla.altlinux.org/43779
# Create non writeable local .desktop file
cat
<<
EOF
>
$BUILDROOT
/usr/bin/
$PRODUCT
cat
<<
EOF
| create_exec_file /usr/bin/
$PRODUCT
#!/bin/sh
LDT=~/.local/share/applications/vkteamsdesktop.desktop
[ ! -r "\
$LDT
" ] && mkdir -p ~/.local/share/applications/ && echo "[Desktop Entry]" > "\
$LDT
" && chmod a-w "\
$LDT
"
# Hack against https://bugzilla.altlinux.org/43779
# add fake desktop-file-install to path to skip desktop creating
export PATH=
$PRODUCTDIR
:
$PATH
exec
$PRODUCTDIR
/
$PRODUCT
"\
$@
"
EOF
cat
<<
'
EOF
' | create_exec_file
$PRODUCTDIR
/desktop-file-install
#!/bin/sh
while [ -n "
$1
" ] ; do
case "
$1
" in
--*)
shift
continue
;;
esac
rm -fv "
$1
"
shift
done
EOF
cat
<<
EOF
| create_file /usr/share/applications/
$PRODUCT
.desktop
[Desktop Entry]
Version=1.0
...
...
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