Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1014007 // linux_showShutdownDialog (for LXDE, e.g. Peppermint Linux)

JavaX fragment (include)

1  
svoid linux_showShutdownDialog() {
2  
  if (!inPATH("lxsession-logout"))
3  
    fail("Shutdown dialog not available for OS");
4  
    
5  
  backtickInNewThread([[lxsession-logout "--prompt=   Shut Down Computer?   " --banner=]] + bashQuote(loadImageAsFile(#1009765)) + " --side=top");
6  
}

Author comment

Began life as a copy of #1000720

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014007
Snippet name: linux_showShutdownDialog (for LXDE, e.g. Peppermint Linux)
Eternal ID of this version: #1014007/3
Text MD5: 1bc1d24553d9a4ffe4409d2babb7546a
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-20 18:39:33
Source code size: 278 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 415 / 438
Version history: 2 change(s)
Referenced in: [show references]