Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
35ba7b9e
Commit
35ba7b9e
authored
Apr 29, 2002
by
Dustin Navea
Committed by
Alexandre Julliard
Apr 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write menu information to /usr/lib/menu/wine.
Try to autodetect KDE version using kde-config.
parent
fc2be7ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
16 deletions
+36
-16
wineshelllink
tools/wineshelllink
+36
-16
No files found.
tools/wineshelllink
View file @
35ba7b9e
...
...
@@ -145,6 +145,10 @@ then
xpmicon
=
""
fi
mdk_entry
>>
"
$HOME
/.menu/wine"
if
[
-d
"/usr/lib/menu"
]
then
mdk_entry
>>
"/usr/lib/menu/wine"
fi
update-menus
>
/dev/null 2>&1
fi
...
...
@@ -152,23 +156,41 @@ fi
if
[
-d
"
$HOME
/.kde"
]
then
copy_icon
"
$HOME
/.kde/share/applnk/Wine"
if
[
$mode
=
"menu"
]
kdeversion
=
0
if
which kde-config
>
/dev/null 2>&1
then
kde_entry
>
"
$HOME
/.kde/share/applnk/Wine/
$link
.kdelnk"
# KDE 1.x kludge. Wake up KDE, if we can find kpanel running
which kwmcom
>
/dev/null 2>/dev/null
&&
\
ps u
-C
kpanel
>
/dev/null 2>/dev/null
&&
\
kwmcom kpanel:restart
kdeversion
=
`
kde-config
-v
|
grep
KDE: |
sed
-n
"s/^KDE:
\(
[^.]*
\)\.
.*
$/
\1
/p"
`
fi
elif
[
-d
"
$HOME
/Desktop"
]
if
[
$kdeversion
=
2
]
then
kde_entry
>
"
$HOME
/Desktop/
$link
.kdelnk"
# KDE 1.x kludge: wake up KDE, if we can find kfm running...
which kfmclient
>
/dev/null 2>/dev/null
&&
\
ps u
-C
kfm
>
/dev/null 2>/dev/null
&&
\
kfmclient refreshDesktop
copy_icon
"
$HOME
/.kde/share/applnk/Wine"
if
[
$mode
=
"menu"
]
then
gnome_entry
>
"
$HOME
/.kde/share/applnk/Wine/
$link
.desktop"
elif
[
-d
"
$HOME
/Desktop"
]
then
gnome_entry
>
"
$HOME
/Desktop/
$link
.desktop"
fi
else
copy_icon
"
$HOME
/.kde/share/applnk/Wine"
if
[
$mode
=
"menu"
]
then
kde_entry
>
"
$HOME
/.kde/share/applnk/Wine/
$link
.kdelnk"
# KDE 1.x kludge. Wake up KDE, if we can find kpanel running
which kwmcom
>
/dev/null 2>/dev/null
&&
\
ps u
-C
kpanel
>
/dev/null 2>/dev/null
&&
\
kwmcom kpanel:restart
elif
[
-d
"
$HOME
/Desktop"
]
then
kde_entry
>
"
$HOME
/Desktop/
$link
.kdelnk"
# KDE 1.x kludge: wake up KDE, if we can find kfm running...
which kfmclient
>
/dev/null 2>/dev/null
&&
\
ps u
-C
kfm
>
/dev/null 2>/dev/null
&&
\
kfmclient refreshDesktop
fi
fi
fi
...
...
@@ -182,8 +204,6 @@ then
then
gnome_entry
>
"
$HOME
/Desktop2/
$link
.desktop"
fi
fi
...
...
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