mytunes-pro 1.7.9__tar.gz → 1.8.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mytunes-pro
3
- Version: 1.7.9
3
+ Version: 1.8.0
4
4
  Summary: A lightweight, keyboard-centric terminal player for streaming YouTube music.
5
5
  Author-email: loxo <loxo5432@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/postgresql-co-kr/mytunes
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mytunes-pro"
7
- version = "1.7.9"
7
+ version = "1.8.0"
8
8
  authors = [
9
9
  { name = "loxo", email = "loxo5432@gmail.com" },
10
10
  ]
@@ -35,7 +35,7 @@ MPV_SOCKET = "/tmp/mpv_socket"
35
35
  LOG_FILE = "/tmp/mytunes_mpv.log"
36
36
  PID_FILE = "/tmp/mytunes_mpv.pid"
37
37
  APP_NAME = "MyTunes Pro"
38
- APP_VERSION = "1.7.9"
38
+ APP_VERSION = "1.8.0"
39
39
 
40
40
  # === [Strings & Localization] ===
41
41
  STRINGS = {
@@ -809,37 +809,39 @@ class MyTunesApp:
809
809
  os.path.join(os.environ.get('PROGRAMFILES(X86)', 'C:\\Program Files (x86)'), 'Microsoft\\Edge\\Application\\msedge.exe'),
810
810
  os.path.join(os.environ.get('PROGRAMFILES', 'C:\\Program Files'), 'Microsoft\\Edge\\Application\\msedge.exe'),
811
811
  ]
812
- # Windows specific order: --app MUST be early for some Chrome versions to ignore toolbars
813
- win_flags = flags + ["--new-window"]
812
+ # In native Windows, we remove user-data-dir to avoid permission/expansion errors
813
+ # app mode + new-window + window-size is sufficient.
814
+ win_flags = [
815
+ f'--app="{live_url}"',
816
+ '--window-size=712,800',
817
+ '--window-position=100,100',
818
+ '--new-window',
819
+ '--no-first-run',
820
+ '--disable-extensions'
821
+ ]
814
822
  for p in win_paths:
815
823
  if os.path.exists(p):
816
824
  try:
817
- # Use shell=False (default) for list-based Popen on Windows
825
+ # Use list-based Popen for native Windows
818
826
  subprocess.Popen([p] + win_flags, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
819
827
  launched = True; break
820
828
  except: pass
821
829
 
822
- # 3. WSL (Run Windows Chrome via cmd.exe for reliable %LOCALAPPDATA% expansion)
830
+ # 3. WSL (Run Windows Chrome via cmd.exe)
823
831
  elif self.is_wsl():
824
832
  try:
825
- # Switching to cmd.exe as requested. cmd expand variables like %LOCALAPPDATA% natively.
826
- # 1. Create directory in standard Windows local app data
827
- # 2. Launch chrome with explicit window flags
828
- p_dir = "%LOCALAPPDATA%\\MyTunesApp\\v179"
829
-
833
+ # Pure CMD start without user-data-dir to avoid expansion/path issues.
834
+ # Window sizing works reliably with just these flags.
830
835
  c_args = [
831
836
  f'--app=\"{live_url}\"',
832
837
  '--window-size=712,800',
833
838
  '--window-position=100,100',
834
- f'--user-data-dir=\"{p_dir}\"',
835
839
  '--new-window',
836
840
  '--no-first-run',
837
841
  '--disable-extensions'
838
842
  ]
839
-
840
- # Chain commands: mkdir (ignore error if exists) then start chrome
841
- full_cmd = f'mkdir "{p_dir}" 2>nul & start chrome {" ".join(c_args)}'
842
-
843
+ # Direct call to chrome via cmd start
844
+ full_cmd = f'start chrome {" ".join(c_args)}'
843
845
  subprocess.Popen(["cmd.exe", "/c", full_cmd], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
844
846
  launched = True
845
847
  except:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mytunes-pro
3
- Version: 1.7.9
3
+ Version: 1.8.0
4
4
  Summary: A lightweight, keyboard-centric terminal player for streaming YouTube music.
5
5
  Author-email: loxo <loxo5432@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/postgresql-co-kr/mytunes
File without changes
File without changes
File without changes