Compare commits
No commits in common. "9fdb90618368f60476328ad14fbd0d1badd26a23" and "2b1d542b2a30bebd2e1b5f15866acd22af8d6b6b" have entirely different histories.
9fdb906183
...
2b1d542b2a
|
@ -1,43 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
"Creates a firefox "
|
|
||||||
|
|
||||||
import argparse
|
|
||||||
import sys
|
|
||||||
import os.path as pt
|
|
||||||
|
|
||||||
def main():
|
|
||||||
"Main Function"
|
|
||||||
parser = argparse.ArgumentParser()
|
|
||||||
parser.add_argument("url", help="URL for the webapp")
|
|
||||||
parser.add_argument(
|
|
||||||
"-n", "--name",
|
|
||||||
help=("Name of the app as shown in the menu. In absence of this, the "
|
|
||||||
"title of page will be used.")
|
|
||||||
)
|
|
||||||
|
|
||||||
parser.add_argument(
|
|
||||||
"-e", "--exec-name",
|
|
||||||
help="Name of the script that will be created in binary directory."
|
|
||||||
)
|
|
||||||
|
|
||||||
parser.add_argument(
|
|
||||||
"-l", "--logo",
|
|
||||||
help="URL/path for the logo. If omitted, the favicon will be used."
|
|
||||||
)
|
|
||||||
|
|
||||||
parser.add_argument(
|
|
||||||
"-f", "--firefox-profile",
|
|
||||||
help="Firefox Profile path. If omitted, the default profile is used"
|
|
||||||
)
|
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
# Add Missing Arguments with default values
|
|
||||||
if args.firefox_profile is None:
|
|
||||||
profile_path = pt.dirname(sys.argv[0]) + "/.firefox_profile"
|
|
||||||
with open(profile_path) as prof:
|
|
||||||
args.firefox_profile = prof.readline()[:-1]
|
|
||||||
print(args)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
Loading…
Reference in New Issue