Changeset View
Changeset View
Standalone View
Standalone View
src/settings/services/servicemenudeinstallation
1 | #!/usr/bin/env ruby | 1 | #!/usr/bin/env ruby | ||
---|---|---|---|---|---|
2 | require 'fileutils' | 2 | require 'fileutils' | ||
3 | archive = ARGV[0] | 3 | archive = ARGV[0] | ||
4 | if archive[(archive.length - 8)..(archive.length)] == ".desktop" | 4 | if archive[(archive.length - 8)..(archive.length)] == ".desktop" | ||
5 | FileUtils.rm(`kde4-config --localprefix`.strip! + "share/kde4/services/ServiceMenus/" + File.basename(archive)) | 5 | FileUtils.rm(`qtpaths --writable-path GenericDataLocation`.strip! + "/kservices5/ServiceMenus/" + File.basename(archive)) | ||
elvisangelaccio: `qtpaths --paths GenericDataLocation` is more future-proof. | |||||
Maybe better: qtpaths --writable-path GenericDataLocation emmanuelp: > `qtpaths --paths GenericDataLocation` is more future-proof.
Maybe better: `qtpaths… | |||||
Yep, good point! elvisangelaccio: > Maybe better: `qtpaths --writable-path GenericDataLocation`
>This avoids the str splitting… | |||||
elvisangelaccio: Now we need a leading `/` before `kservices5` ;) | |||||
6 | exit(0) | 6 | exit(0) | ||
7 | end | 7 | end | ||
8 | dir = archive + "-dir" | 8 | dir = archive + "-dir" | ||
9 | # try: deinstall.sh | 9 | # try: deinstall.sh | ||
10 | # try: deinstall | 10 | # try: deinstall | ||
11 | # try: installKDE4.sh | 11 | # try: installKDE4.sh | ||
12 | # try: installKDE4 | 12 | # try: installKDE4 | ||
13 | # try: install.sh | 13 | # try: install.sh | ||
Show All 24 Lines |
qtpaths --paths GenericDataLocation is more future-proof.