{"id":1729,"date":"2021-04-08T09:56:50","date_gmt":"2021-04-08T14:56:50","guid":{"rendered":"https:\/\/blog.iqonda.net\/?p=1729"},"modified":"2021-04-08T09:56:50","modified_gmt":"2021-04-08T14:56:50","slug":"gnome-desktop-shortcut","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/gnome-desktop-shortcut\/","title":{"rendered":"Gnome Desktop Shortcut"},"content":{"rendered":"

GNOME Desktop Shortcut<\/h1>\n

Just another note about this. See previous<\/a> also.<\/p>\n

Create in user Desktop folder<\/h2>\n
$ cat crypto-report.desktop \n[Desktop Entry]\nVersion=1.0\nExec=\/home\/rrosso\/scripts\/crypto-report.sh\nName=crypto-report\nGenericName=crypto-report\nComment=run crypto-report script\nEncoding=UTF-8\nTerminal=true\nType=Application\nCategories=Application;Network;<\/code><\/pre>\n

Script<\/h2>\n
$ cat ~\/scripts\/crypto-report.sh \n#!\/bin\/bash\n\ncommands () {\n    cd \/TANK\/DATA\/MySrc\/crypto-totals-api\n    python3 consolidated-crypto-report.py\n    $SHELL # keep the terminal open after the previous commands are executed\n}\n\nexport -f commands\n\ngnome-terminal --profile=crypto-report -- bash -c \"commands\"<\/code><\/pre>\n

NOTE: May have to right click on shortcut on the desktup and allow to tun.<\/p>\n","protected":false},"excerpt":{"rendered":"

GNOME Desktop Shortcut Just another note about this. See previous also. Create in user Desktop folder $ cat crypto-report.desktop [Desktop<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-1729","post","type-post","status-publish","format-standard","hentry","category-gnome"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1729"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1729\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}