![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,748
Karma: 50677921
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Hiding the command prompt window
Currently, closing the command prompt window also closes a run-from-source Calibre. Is there a way around this? Thanks.
![]() |
![]() |
![]() |
![]() |
#2 | |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,849
Karma: 69972205
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
|
Since forever, before Linux, on Linux
Quote:
On windows you have various options. 1) Utility to start a program as a service 2) Wrap it in some sort of script 3) Start command and then some fu stuff to detach it? 4) cygwin/MSFU/Linux subsystem ![]() |
|
![]() |
![]() |
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,748
Karma: 50677921
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Currently I just use a shell extension to hide it to system tray.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,026
Karma: 8773372
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
In a terminal type:
Code:
calibre & disown Tested using Linux Mint 21.1 . bernie https://superuser.com/questions/1785...minal-entirely |
![]() |
![]() |
![]() |
#5 |
Frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,212
Karma: 5422155
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Are you on windows? This works for me to run calibre from source not in debug mode:
Code:
set CALIBRE_DEVELOP_FROM=C:\CBH_Data\calibre.git\calibre_dev\src set CALIBRE_CONFIG_DIRECTORY=C:\CBH_Data\calibre.git\config_test_small start calibre |
![]() |
![]() |
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,531
Karma: 20170320
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Note that on linux the canonical way to do this with calibre is to run it as
calibre --detach disown does not actually work correctly in that it still leaves the stdio file handles connected to the tty. And calibre does not ignore failures to write to stdout/stderr unlike many other programs. |
![]() |
![]() |
![]() |
#7 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,748
Karma: 50677921
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Windows user. I changed my bat file to use "start calibre" and it worked
![]() Code:
@ECHO OFF :: set envs set CALIBRE_CONFIG_DIRECTORY=D:\AppData\Calibre set CALIBRE_CACHE_DIRECTORY=D:\Temporary\Calibre\cache set CALIBRE_TEMP_DIR=D:\Temporary\Calibre\temp set CALIBRE_DEVELOP_FROM=D:\Documents\git\calibre\src :: run calibre from source start calibre :: "c:\Program Files\calibre2\calibre.exe" :: "c:\Program Files\calibre2\calibre-debug.exe" -g Last edited by ownedbycats; 02-01-2023 at 10:57 AM. |
![]() |
![]() |
![]() |
#8 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 279
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
|
Quote:
This link has instructions on creating your own .desktop file, but steps 1–5 are about downloading a game to use as an example, so you can skip them entirely as you presumably already know that Calibre runs properly. |
|
![]() |
![]() |
![]() |
#9 |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,849
Karma: 69972205
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
|
Or simpler still, if using a Menu that allows creation of icon on desktop or Place Bar by right Mouse menu. Create icon and then edit properties.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding covers from command-prompt? | cheshyre | Library Management | 2 | 12-24-2018 06:54 PM |
start 'fetch news' process from the command prompt | poldem | Calibre | 2 | 03-17-2011 11:35 AM |
Need help using mobidedrm - stuck on command prompt | weeziepepper | Kindle Formats | 7 | 02-11-2010 11:22 AM |
Switch Title and Author from command prompt | Armaced | Calibre | 18 | 08-16-2009 03:31 PM |
Launching Calibre from Command Prompt | itimpi | Calibre | 7 | 04-02-2009 07:26 PM |