{"id":7370,"date":"2020-09-02T13:52:30","date_gmt":"2020-09-02T05:52:30","guid":{"rendered":"https:\/\/blog.hoyo.idv.tw\/?p=7370"},"modified":"2020-09-02T13:52:30","modified_gmt":"2020-09-02T05:52:30","slug":"linux-gui-%e8%87%aa%e5%8b%95%e5%95%9f%e5%8b%95-firefox-%e4%b8%a6%e5%85%a8%e8%9e%a2%e5%b9%95","status":"publish","type":"post","link":"https:\/\/blog.hoyo.idv.tw\/?p=7370","title":{"rendered":"Linux GUI \u81ea\u52d5\u555f\u52d5 Firefox \u4e26\u5168\u87a2\u5e55"},"content":{"rendered":"<p>--<\/p>\n<ul>\n<li><a class=\"question-hyperlink\" href=\"https:\/\/askubuntu.com\/questions\/48321\/how-do-i-start-applications-automatically-on-login\" target=\"_blank\" rel=\"noopener\">How do I start applications automatically on login?<\/a><\/li>\n<li><a class=\"question-hyperlink\" href=\"https:\/\/unix.stackexchange.com\/questions\/462779\/how-to-make-firefox-auto-launch-at-startup-in-fullscreen-on-linux-ubuntu\" target=\"_blank\" rel=\"noopener\">How to make Firefox auto launch at startup in fullscreen on Linux Ubuntu?<\/a><\/li>\n<li><a href=\"https:\/\/support.mozilla.org\/en-US\/kb\/firefox-enterprise-kiosk-mode\" target=\"_blank\" rel=\"noopener\">Firefox Enterprise Kiosk mode<\/a><\/li>\n<li><a href=\"http:\/\/wiki.csie.ncku.edu.tw\/xdotool\" target=\"_blank\" rel=\"noopener\">xdotool<\/a><\/li>\n<\/ul>\n<p>\u7de8\u8f2f Shell Script<\/p>\n<pre class=\"lang:default decode:true \"># nano \/opt\/f.sh<\/pre>\n<pre class=\"lang:default decode:true\">#!\/bin\/sh\r\nfirefox -kiosk http:\/\/hoyo.idv.tw &amp;\r\nxdotool search --sync --onlyvisible --pid $! windowactivate key F11<\/pre>\n<p>\u8a2d\u5b9a\u70ba\u53ef\u57f7\u884c<\/p>\n<pre class=\"lang:default decode:true \"># chmod +x \/opt\/f.sh<\/pre>\n<p>\u4f7f\u7528 Startup Applications \u5c07 \/opt\/f.sh \u8a2d\u5b9a\u555f\u52d5\u57f7\u884c<\/p>\n<p>--<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"7370\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;2,828&nbsp;total views, &nbsp;1&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>-- How do I sta...<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"7370\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;2,828&nbsp;total views, &nbsp;1&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[31],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/7370"}],"collection":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7370"}],"version-history":[{"count":1,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/7370\/revisions"}],"predecessor-version":[{"id":7371,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/7370\/revisions\/7371"}],"wp:attachment":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}