Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42578 Details for
Bug 25756
domenu command, required for global menu system (#18638)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
domenu
domenu (text/plain), 1.19 KB, created by
Heinrich Wendel (RETIRED)
on 2004-10-25 14:16:15 UTC
(
hide
)
Description:
domenu
Filename:
MIME Type:
Creator:
Heinrich Wendel (RETIRED)
Created:
2004-10-25 14:16:15 UTC
Size:
1.19 KB
patch
obsolete
>#!/usr/bin/env python >################################################# ># Python script to install a new .desktop files # ># Usage: # ># - domenu file1 file2 file3 ... # ># - domenu dir1 dir2 dir3 ... # ># - domenu file1 dir1 ... # >################################################# > >import sys, os, re > >try: > from xdg.DesktopEntry import * > from xdg.Exceptions import * >except ImportError: > noxdg = True > >def domenu(path): > if os.path.isfile(path): > if re.search(".desktop$", path): > print ">>> domenu: making " + path + " menu entry..." > if not noxdg: > try: > file = DesktopEntry() > file.parse(path) > file.validate("Errors") > os.system("install -m0644 " + path + " " + os.path.join(D, "usr/share/applications)")) > except ValidationError, e: > print e > else: > os.system("install -m0644 " + path + " " + os.path.join(D, "usr/share/applications")) > > elif os.path.isdir(path): > ls = os.listdir(path) > for i in ls: > domenu(os.path.join(path, i)) > > >D = os.getenv("D") > >os.system("install -d " + os.path.join(D, "usr/share/applications")) > >for i in range(1,len(sys.argv)): > domenu(sys.argv[i])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 25756
:
15360
|
15361
|
15362
|
17313
|
17826
|
18315
|
30438
|
42578
|
42579
|
43733
|
43775
|
43948