Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
8e44ba1c
Commit
8e44ba1c
authored
Nov 20, 2001
by
Dusan Lacko
Committed by
Alexandre Julliard
Nov 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Debian/Mandrake menu system support.
parent
0ca07c97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
wineshelllink
tools/wineshelllink
+27
-0
No files found.
tools/wineshelllink
View file @
8e44ba1c
...
...
@@ -89,6 +89,14 @@ EOF
[
-z
"
$xpmicon
"
]
||
echo
"Icon=
$xpmicon
"
}
mdk_entry
()
{
base
=
`
basename
"
$link
"
`
section
=
`
dirname
"
$link
"
`
[
-z
"
$icon
"
]
||
xicon
=
"icon=
\"
$xpmicon
\"
"
echo
"?package(local.Wine):needs=x11 section=
\"
Wine/
$section
\"
title=
\"
$base
\"
longtitle=
\"
$descr
\"
command=
\"
wine
\\\"
$path
\\\"
$args
\"
$xicon
"
}
# copy the icon file to a specified dir and set xpmicon to the resulting path
copy_icon
()
{
...
...
@@ -104,6 +112,25 @@ copy_icon()
fi
}
# Debian/Mandrake
type
update-menus
>
/dev/null 2>&1
if
[
$?
=
0
-a
$mode
=
"menu"
]
then
iconname
=
"
`
basename
"
$link
"
`
.xpm"
dir
=
"
$HOME
/.menu/icons"
if
[
-f
"
$icon
"
]
then
mkdir
-p
$dir
cp
"
$icon
"
"
$dir
/
$iconname
"
xpmicon
=
"
$dir
/
$iconname
"
else
xpmicon
=
""
fi
mdk_entry
>>
"
$HOME
/.menu/wine"
update-menus
>
/dev/null 2>&1
fi
# KDE
if
[
-d
"
$HOME
/.kde"
]
...
...
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