Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 15361 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.36 KB, created by
Heinrich Wendel (RETIRED)
on 2003-08-02 07:31:31 UTC
(
hide
)
Description:
domenu
Filename:
MIME Type:
Creator:
Heinrich Wendel (RETIRED)
Created:
2003-08-02 07:31:31 UTC
Size:
1.36 KB
patch
obsolete
>#!/usr/bin/env python2.2 >################################################# ># 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 * > xdg = True >except ImportError: > xdg = False > >def dodesktop(path): > if os.path.isfile(path): > print ">>> domenu: making " + path + " menu entry..." > if xdg: > try: > file = DesktopEntry() > file.parse(path) > file.validate("Errors") > os.system("install -m0644 " + path + " " + D + "usr/share/menu/applications") > except ValidationError, e: > print e > else: > os.system("install -m0644 " + path + " " + D + "usr/share/menu/applications") > > elif os.path.isdir(path): > ls = os.listdir(path) > for i in ls: > dodesktop(path + i) > > >D = os.getenv("D") >FEATURES = os.getenv("FEATURES") > >os.system("install -d " + D + "usr/share/menu/applications") > >for i in range(1,len(sys.argv)): > dodesktop(sys.argv[i]) > >if re.search("menu", FEATURES) and os.path.exists("/usr/bin/update-menus"): > print ">>> updating menus..." > os.putenv("SANDBOX_ON", "0") > os.system("/usr/bin/update-menus") > os.putenv("SANDBOX_ON", "1")
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