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

10
LINES

< > BotCompany Repo | #1004272 // Try Setting Desktop Wallpaper On Peppermint Linux [WORKS!]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1211L/9K/29K).

1  
!752
2  
3  
p {
4  
  S imageID = or2(get(args, 0), "#1002132"); // Eleutheria
5  
  File img = loadImageAsFile(imageID);
6  
  S cmd = "pcmanfm " + bashQuote("--set-wallpaper=" + img)
7  
    + " --wallpaper-mode=center";
8  
  print(backtick(cmd));
9  
  print("Wallpaper set to " + imageID + ", centered!?");
10  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004272
Snippet name: Try Setting Desktop Wallpaper On Peppermint Linux [WORKS!]
Eternal ID of this version: #1004272/1
Text MD5: 813ed62e79b77ef25808f726e54a8501
Transpilation MD5: 4bee0e003e8601fa5abdab988d63378e
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-12 15:00:24
Source code size: 292 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 484 / 564
Referenced in: [show references]